summaryrefslogtreecommitdiff
path: root/network/atheme/rc.atheme.new
blob: 4be277a5bdea7193c05da59c62153bc9834f9348 (plain)
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
30
31
32
33
#!/bin/sh

# Startup file for atheme services.
# Note that atheme needs starting after your IRC daemon.

start() {
    atheme-services
}

stop() {
    killall atheme-services
}

hup() {
    killall -HUP atheme-services
}

case "$1" in
    'start')
        start
        ;;
    'stop')
        stop
        ;;
    'hup')
        hup
        ;;
    'restart')
        stop
        sleep 1
        start
        ;;
esac