blob: 4ec85f319739c1c5a4a45b8d73d24d01717e1983 (
about) (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#!/bin/sh
#
# crontab script for atheme
#
# Change this to the directory where you installed it
prefix=$HOME/atheme/
pidfile=var/atheme.pid
cd "$prefix" || {
echo "$0: couldn't cd to $prefix"
exit 1
}
if [ -f "$pidfile" ] ; then
PID=`cat "$pidfile"`
if kill -0 $PID >/dev/null 2>&1; then
exit 0
fi
rm -f "$pidfile"
fi
echo "$0: couldn't find atheme running, restarting..."
./bin/atheme-services
exit 0
|