Debian Codegraph @

distrib/SMF/ergo

raw
1 #!/sbin/sh
2 #
3 # SMF method script for ergo - used by manifest file ergo.xml
4 # Created 22/11/2021 by [email protected]
5
6 . /lib/svc/share/smf_include.sh
7
8 case $1 in
9 'start')
10 exec /opt/ergo/ergo run --conf /opt/ergo/ircd.yaml
11 ;;
12
13 'refresh' )
14 exec pkill -1 -U ergo -x ergo
15 ;;
16 'stop' )
17 exec pkill -U ergo -x ergo
18 ;;
19
20 *)
21 echo "Usage: $0 { start | refresh | stop }"
22 exit 1
23 ;;
24 esac
25
26 exit $?