2023-12-17 06:49:56 -05:00
|
|
|
#!/sbin/openrc-run
|
|
|
|
|
2023-12-23 06:04:04 -05:00
|
|
|
command_args="irc.rizon.net:6665 \#/g/test"
|
2023-12-17 06:49:56 -05:00
|
|
|
|
|
|
|
name="hibot"
|
|
|
|
pidfile="/var/run/${name}.pid"
|
2023-12-23 06:04:04 -05:00
|
|
|
supervisor="supervise-daemon"
|
2023-12-17 06:49:56 -05:00
|
|
|
|
2023-12-23 06:04:04 -05:00
|
|
|
command="syscmd(`printf $(pwd)')/${name}"
|
2023-12-17 06:49:56 -05:00
|
|
|
|
2023-12-23 06:04:04 -05:00
|
|
|
reload() {
|
|
|
|
ebegin "Reloading ${RC_SVCNAME}"
|
|
|
|
${supervisor} ${name} --pidfile "${pidfile}" -- ${command_args}
|
|
|
|
eend $?
|
2023-12-17 06:49:56 -05:00
|
|
|
}
|