From 63976af404df136e442f0144a06ce90e40fec2fe Mon Sep 17 00:00:00 2001 From: hazardchem Date: Tue, 3 Jan 2023 06:13:17 +0000 Subject: [PATCH] OpenRC Script Added openrc script. --- itd | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 itd 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 $? +}