28 lines
539 B
Bash
Executable File
28 lines
539 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# PROVIDE: ftracker
|
|
# REQUIRE: LOGIN DAEMON NETWORKING
|
|
# KEYWORD: fasttube corona tracker
|
|
|
|
# Enable this script by adding:
|
|
# ftracker_enable="YES"
|
|
# ... to /etc/rc.conf
|
|
|
|
. /etc/rc.subr
|
|
|
|
name="ftracker"
|
|
rcvar="ftracker_enable"
|
|
|
|
pidfile="/var/run/${name}.pid"
|
|
logfile="/var/log/${name}.log"
|
|
configfile="/root/ftracker/res/ftracker.uwsgi.ini"
|
|
|
|
command="/usr/local/bin/uwsgi";
|
|
command_args="--ini ${configfile} --daemonize ${logfile} --pidfile ${pidfile}"
|
|
|
|
sig_stop="INT"
|
|
sig_reload="TERM"
|
|
|
|
load_rc_config $name
|
|
run_rc_command "$1"
|