View | Details | Raw Unified | Return to bug 252159
Collapse All | Expand All

(-)i2pd.in (-2 / +8 lines)
Lines 22-33 Link Here
22
: ${i2pd_group="%%GROUP%%"}
22
: ${i2pd_group="%%GROUP%%"}
23
: ${i2pd_pidfile="/var/run/${name}/${name}.pid"}
23
: ${i2pd_pidfile="/var/run/${name}/${name}.pid"}
24
: ${i2pd_datadir="/var/db/${name}"}
24
: ${i2pd_datadir="/var/db/${name}"}
25
: ${i2pd_logfile="/var/log/${name}/${name}.log"}
25
26
case "$i2pd_logfile" in
27
  syslog)	log="--log syslog" ;;
28
  syslog:*)	log="--log syslog --loglevel ${i2pd_logfile#syslog:}" ;;
29
  *)		: ${i2pd_logfile="/var/log/${name}/${name}.log"}
30
		log="--log file --logfile ${i2pd_logfile}" ;;
31
esac
26
32
27
required_dirs=${i2pd_datadir}
33
required_dirs=${i2pd_datadir}
28
pidfile=${i2pd_pidfile}
34
pidfile=${i2pd_pidfile}
29
command="%%PREFIX%%/bin/${name}"
35
command="%%PREFIX%%/bin/${name}"
30
command_args="--pidfile ${i2pd_pidfile} --service --datadir ${i2pd_datadir} --log file --logfile ${i2pd_logfile} --daemon"
36
command_args="--pidfile ${i2pd_pidfile} --service --datadir ${i2pd_datadir} --daemon $log"
31
extra_commands="reload"
37
extra_commands="reload"
32
reload_cmd="pkill -1 -F ${i2pd_pidfile} -x i2pd"
38
reload_cmd="pkill -1 -F ${i2pd_pidfile} -x i2pd"
33
39

Return to bug 252159