1
0
mirror of https://git.openwrt.org/feed/packages.git synced 2024-06-16 20:33:58 +02:00
openwrt-packages/net/dante/files/sockd.init
David Yang b75a512915 dante: adopt package
Give this package more love by adopting it :)

Changes since 1.4.1-4:
  * change maintainer to me
  * update to 1.4.3
  + add example config files sockd.conf and socks.conf
  + add service file for sockd
  * update 200-fix-RTLD_NEXT.patch
  - remove merged 210-deactivate-sched_setscheduler.patch
  * fix Autoconf build file

Signed-off-by: David Yang <mmyangfl@gmail.com>
2021-06-24 03:44:23 +08:00

25 lines
402 B
Bash
Executable File

#!/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
}