blob: 79cea2182d35ad50d8e6524f86fd244656706f32 (
plain)
1 #!/bin/sh
2 #
3 # /etc/rc.d/psybnc: start/stop psybnc daemon
4 #
5
6 PSYBNC_USER=psybnc
7
8 case $1 in
9 start)
10 cd /var/run/
11 su - $PSYBNC_USER -c "psybnc /etc/psybnc/psybnc.conf"
12 ;;
13 stop)
14 kill -KILL `cat /var/run/psybnc.pid`
15 ;;
16 restart)
17 $0 stop
18 sleep 2
19 $0 start
20 ;;
21 *)
22 echo "usage: $0 [start|stop|restart]"
23 ;;
24 esac
25
26 # End of file
|