diff options
Diffstat (limited to 'net-irc')
-rw-r--r-- | net-irc/ergo/ergo-2.7.0-r1.ebuild (renamed from net-irc/ergo/ergo-2.7.0.ebuild) | 0 | ||||
-rw-r--r-- | net-irc/ergo/files/ergo.initd | 10 |
2 files changed, 9 insertions, 1 deletions
diff --git a/net-irc/ergo/ergo-2.7.0.ebuild b/net-irc/ergo/ergo-2.7.0-r1.ebuild index edff5c53fda6..edff5c53fda6 100644 --- a/net-irc/ergo/ergo-2.7.0.ebuild +++ b/net-irc/ergo/ergo-2.7.0-r1.ebuild diff --git a/net-irc/ergo/files/ergo.initd b/net-irc/ergo/files/ergo.initd index bc2b7dd064d1..025d6951862b 100644 --- a/net-irc/ergo/files/ergo.initd +++ b/net-irc/ergo/files/ergo.initd @@ -1,6 +1,8 @@ #!/sbin/openrc-run command=/usr/bin/ergo -command_args="--conf ${ERGO_CONFIGFILE:-"/etc/ergo/ircd.yaml"}" +command_args="run --conf ${ERGO_CONFIGFILE:-"/etc/ergo/ircd.yaml"}" +command_background=true +extra_started_commands="reload" pidfile=/var/run/ergo.pid name="ergo" description="ergo IRC daemon" @@ -9,3 +11,9 @@ depend() { use dns provide ircd } + +reload() { + ebegin "Reloading ${RC_SVCNAME}" + start-stop-daemon --signal HUP --pidfile "${pidfile}" + eend $? +} |