commit 7a0b28cda93dad9f85215b3b35b900126412e3e8 parent ab52c73cd6b2f4981b646fb01a8766064cf79e26 Author: deurzen <max@deurzen.net> Date: Fri, 3 Jun 2022 09:57:42 +0200 adds OpenRC init.d script Diffstat:
A | init.d-caps2esclogo4alt | | | 13 | +++++++++++++ |
1 file changed, 13 insertions(+), 0 deletions(-)
diff --git a/init.d-caps2esclogo4alt b/init.d-caps2esclogo4alt @@ -0,0 +1,13 @@ +#!/sbin/openrc-run +# install to /etc/init.d, ln -s to /etc/runtimes/default (rc-update enable) +name="caps2esc-logo4alt" +supervisor="supervise-daemon" +command="/usr/local/bin/udevmon" +pidfile="/run/${RC_SVCNAME}.pid" +command_args="-c /etc/caps2esclogo4alt.yaml" + +reload() { + ebegin "Reloading caps2esc-logo4alt configuration" + ${supervisor} ${RC_SVCNAME} --signal HUP --pidfile "${pidfile}" + eend $? +}