hassio-addons/sbfspot/rootfs/etc/init.d/SBFspotUploadDaemon.service
habuild 3e08e65720
Add files via upload
initial commit
2022-03-16 13:19:15 +11:00

36 lines
675 B
Desktop File

#!/sbin/openrc-run
description="SBFspot upload daemon"
#pidfile="/run/SBFspotUploadDaemon.pid"
command="/SBFspotUploadDaemon"
command_opts=" -c /SBFspotUpload.cfg"
depend() {
need net
}
start()
{
ebegin "Starting SBFspotUploadDaemon"
start-stop-daemon --start --background \
--exec $command \
-- $command_opts \
#--make-pidfile --pidfile $pidfile
eend $?
}
stop() {
ebegin "Stopping SBFspotUploadDaemon"
start-stop-daemon --stop \
--exec $command \
#--pidfile $pidfile
eend $?
}
reload() {
ebegin "Reloading SBFspotUploadDaemon"
start-stop-daemon --exec $command \
#--pidfile $pidfile \
-s 1
eend $?
}