3 # Make sure that the environment is deterministic.
4 export PATH=@coreutils@/bin
6 if test "$1" = "start"; then
7 if ! @procps@/bin/pgrep ircd; then
9 while ! @iproute@/sbin/ip addr |
10 @gnugrep@/bin/grep inet6 |
11 @gnugrep@/bin/grep global; do
17 chown ircd: /home/ircd
19 env - HOME=/homeless-shelter $extraEnv \
20 @su@/bin/su ircd --shell=/bin/sh -c ' @ircdHybrid@/bin/ircd -configfile @out@/conf/ircd.conf </dev/null -logfile /home/ircd/ircd.log' 2>&1 >/var/log/ircd-hybrid.out
24 if test "$1" = "stop" ; then
25 @procps@/bin/pkill ircd;