mirror of
https://github.com/ergochat/ergo.git
synced 2025-01-10 04:02:52 +01:00
27 lines
455 B
Plaintext
27 lines
455 B
Plaintext
|
#!/sbin/sh
|
||
|
#
|
||
|
# SMF method script for ergo - used by manifest file ergo.xml
|
||
|
# Created 22/11/2021 by georg@lysergic.dev
|
||
|
|
||
|
. /lib/svc/share/smf_include.sh
|
||
|
|
||
|
case $1 in
|
||
|
'start')
|
||
|
exec /opt/ergo/ergo run --conf /opt/ergo/ircd.yaml
|
||
|
;;
|
||
|
|
||
|
'refresh' )
|
||
|
exec pkill -1 -U ergo -x ergo
|
||
|
;;
|
||
|
'stop' )
|
||
|
exec pkill -U ergo -x ergo
|
||
|
;;
|
||
|
|
||
|
*)
|
||
|
echo "Usage: $0 { start | refresh | stop }"
|
||
|
exit 1
|
||
|
;;
|
||
|
esac
|
||
|
|
||
|
exit $?
|