aboutsummaryrefslogtreecommitdiff
path: root/net/dante/files/sockd.init
blob: 4fdb6b6a7a914a05c66f9b6ae0850a18fc6e3a71 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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
}