Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Z
zimbra training
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Daniel Eugenin
zimbra training
Commits
30f1173f
Commit
30f1173f
authored
Oct 01, 2018
by
Daniel Eugenin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
troubleshoot exercises
parent
ee2e186d
Pipeline
#2265
failed with stages
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
0 deletions
+31
-0
troubleshoot.sh
troubleshoot.sh
+31
-0
No files found.
troubleshoot.sh
0 → 100644
View file @
30f1173f
#!/bin/sh
lesson
=
"
$1
"
if
[
-z
"
$1
"
]
;
then
echo
"Usage:
$0
[lesson-number]"
exit
1
fi
case
"
$lesson
"
in
0|1
)
echo
"Troubleshooting Lesson 1, breaking system..."
su -
-c
"zmcontrol stop"
zimbra
chown
-R
root:root /opt/zimbra/store
echo
"System broken, please troubleshoot it - "
echo
" Please try to start your ZCS server, then login to Zimbra Web Client and send a message, and proceed from there."
;;
2
)
echo
"Troubleshooting Lesson 2, breaking system..."
ps axuwww |
grep
mailboxd |
grep
java |
grep
-v
grep
|
\
awk
'{print $2}'
| xargs
kill
-s
11
echo
"System broken, please troubleshoot it - "
echo
" Please try to login to your ZCS Admin page and proceed from there."
;;
fix
)
echo
"Here are the answers:"
echo
"Lesson 1: su -c
\"
zmfixperms -extended
\"
zimbra"
echo
"Lesson 2: su - -c
\"
zmmailboxdctl start
\"
zimbra"
echo
"Lesson 3: /etc/init.d/network restart"
;;
esac
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment