Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F56394550
ensure-eggdrops-are-live.sh
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
ensure-eggdrops-are-live.sh
View Options
#!/bin/sh
# -------------------------------------------------------------
# Eggdrop liveness checker
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Project: Nasqueron
# License: Trivial work, not eligible to copyright
# Source file: roles/viperserv/eggdrop/files/ensure-eggdrops-are-live.sh
# -------------------------------------------------------------
#
# <auto-generated>
# This file is managed by our rOPS SaltStack repository.
#
# Changes to this file may cause incorrect behavior
# and will be lost if the state is redeployed.
# </auto-generated>
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
Sat, Nov 7, 18:19 (1 w, 1 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4094091
Default Alt Text
ensure-eggdrops-are-live.sh (1 KB)
Attached To
Mode
rOPS Nasqueron Operations
Attached
Detach File
Event Timeline
Log In to Comment