diff --git a/itd b/itd new file mode 100644 index 0000000..8bf094a --- /dev/null +++ b/itd @@ -0,0 +1,20 @@ +#!/sbin/openrc-run + +name="itd" +description="Infinitime Daemon (itd)" +command="@bindir@/itd" +pidfile="@piddir@/${RC_SVCNAME}.pid" +command_user="user:group" +command_background="yes" +respawn_period=30 + +depend() { + after bluetooth +} + +reload() { + checkconfig || return $? + ebegin "Reloading ${RC_SVCNAME}" + start-stop-daemon --signal HUP --pidfile "${pidfile}" + eend $? +}