Added openrc script.
This commit is contained in:
parent
5f5c67f7cc
commit
63976af404
20
itd
Normal file
20
itd
Normal file
@ -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 $?
|
||||
}
|
Loading…
Reference in New Issue
Block a user