diff options
Diffstat (limited to 'net/dante/files/sockd.init')
-rwxr-xr-x | net/dante/files/sockd.init | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/net/dante/files/sockd.init b/net/dante/files/sockd.init new file mode 100755 index 000000000..4fdb6b6a7 --- /dev/null +++ b/net/dante/files/sockd.init @@ -0,0 +1,24 @@ +#!/bin/sh /etc/rc.common +# Copyright (C) 2019 OpenWrt.org + +USE_PROCD=1 + +START=90 +STOP=10 + +PROG=/usr/sbin/sockd +USER="root" +GROUP="root" +PIDFILE=/var/run/sockd.pid +CONFFILE=/etc/sockd.conf + +. /lib/functions.sh + + +start_service() { + procd_open_instance + procd_set_param command "$PROG" -f "$CONFFILE" -p "$PIDFILE" + procd_set_param user "$USER" + procd_set_param pidfile "$PIDFILE" + procd_close_instance +} |