diff options
author | Pav Lucistnik <pav@FreeBSD.org> | 2005-04-20 16:22:40 +0000 |
---|---|---|
committer | Pav Lucistnik <pav@FreeBSD.org> | 2005-04-20 16:22:40 +0000 |
commit | f45a93b4333780441c95ec1f11afaf0fd8e23907 (patch) | |
tree | 120cdb698fe1629ba73fb1d2e20bfe6c9157f5e8 /irc/ircd-rusnet/files/ircd.sh.sample | |
parent | 03ad89aff326f4bc3077776d1648913cde33d17e (diff) |
Notes
Diffstat (limited to 'irc/ircd-rusnet/files/ircd.sh.sample')
-rw-r--r-- | irc/ircd-rusnet/files/ircd.sh.sample | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/irc/ircd-rusnet/files/ircd.sh.sample b/irc/ircd-rusnet/files/ircd.sh.sample new file mode 100644 index 000000000000..8c65064a4fe4 --- /dev/null +++ b/irc/ircd-rusnet/files/ircd.sh.sample @@ -0,0 +1,33 @@ +#! /bin/sh + +PATH=/bin:/usr/bin + +daemon=ircd +daemon_path=/usr/local/sbin +daemon_pid=/var/run/ircd/$daemon.pid +daemon_flags= + +case $1 in + start) + if [ -x ${daemon_path}/$daemon ]; then + ${daemon_path}/$daemon $daemon_flags >/dev/null 2>&1 + echo -n " $daemon" + fi + ;; + stop) + if [ -f $daemon_pid ]; then + kill `head -1 $daemon_pid` && echo -n " $daemon" + fi + ;; + restart) + $0 stop + sleep 1 + $0 start + ;; + *) + echo "Usage: `basename $0` {start|stop|restart}" >&2 + exit 64 + ;; +esac + +exit 0 |