Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F4793708
ensure-eggdrops-are-live.sh
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
489 B
Referenced Files
None
Subscribers
None
ensure-eggdrops-are-live.sh
View Options
#!/bin/sh
while
IFS
=
' '
read
-r eggdrop
;
do
# Skip blank lines and comment lines
take_first_character
=
"?"
first_character
=
${
eggdrop
%
"
${
eggdrop
#
${
take_first_character
}}
"
}
if
[
"
$first_character
"
=
"#"
]
;
then
continue
elif
[
"
$eggdrop
"
=
""
]
;
then
continue
fi
service eggdrop status
"
$eggdrop
"
> /dev/null
status
=
$?
if
[
$status
-ne
0
]
;
then
service eggdrop restart
"
$eggdrop
"
fi
done
< /usr/local/etc/eggdrops-live.conf
File Metadata
Details
Attached
Mime Type
text/x-shellscript
Expires
Fri, Feb 28, 22:47 (1 d, 5 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2436656
Default Alt Text
ensure-eggdrops-are-live.sh (489 B)
Attached To
Mode
rOPS Nasqueron Operations
Attached
Detach File
Event Timeline
Log In to Comment