aboutsummaryrefslogtreecommitdiffstats
path: root/community/seatd/seatd.initd
diff options
context:
space:
mode:
Diffstat (limited to 'community/seatd/seatd.initd')
-rw-r--r--community/seatd/seatd.initd16
1 files changed, 11 insertions, 5 deletions
diff --git a/community/seatd/seatd.initd b/community/seatd/seatd.initd
index 999c0bd6750..b0810438527 100644
--- a/community/seatd/seatd.initd
+++ b/community/seatd/seatd.initd
@@ -1,10 +1,16 @@
#!/sbin/openrc-run
-supervisor=supervise-daemon
-name=$RC_SVCNAME
+name="seatd"
description="Seat management daemon"
-command="seatd"
-command_args="-g seat"
+command="/usr/bin/seatd"
+command_args="-g seat -l ${loglevel:-error} ${command_args:-}"
+command_background="yes"
-supervise_daemon_args="--stderr /var/log/seatd.log"
+start_stop_daemon_args="${loglevel:+--env}"
+supervise_daemon_args="$start_stop_daemon_args"
+pidfile="/run/$RC_SVCNAME.pid"
+
+if [ "$loglevel" != 'silent' ]; then
+ : ${error_logger="logger -t $name -p daemon.${loglevel:-error} >/dev/null 2>&1"}
+fi