blob: 4fdb6b6a7a914a05c66f9b6ae0850a18fc6e3a71 [file] [log] [blame]
#!/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
}