mirror of
https://github.com/coolsnowwolf/packages.git
synced 2025-05-02 03:00:58 +08:00

postfix,wifidog,travelmate,openvswitch,nginx,seafile-server,dockerd,gnunet,simple-adblock,tgt,vpnbypass,radicale,apfree-wifidog: use old extra_command wrapper
23 lines
485 B
Bash
23 lines
485 B
Bash
#!/bin/sh /etc/rc.common
|
|
# Copyright (C) 2006 OpenWrt.org
|
|
START=65
|
|
|
|
USE_PROCD=1
|
|
|
|
EXTRA_COMMANDS="status"
|
|
EXTRA_HELP=" Print the status of the service"
|
|
|
|
start_service() {
|
|
procd_open_instance
|
|
# -s: log to syslog
|
|
# -f: run in foreground
|
|
procd_set_param command /usr/bin/wifidog -s -f
|
|
procd_set_param respawn # respawn automatically if something died
|
|
procd_set_param file /etc/wifidog.conf
|
|
procd_close_instance
|
|
}
|
|
|
|
status_service() {
|
|
/usr/bin/wdctl status
|
|
}
|