Packages: log and pid paths made consistent.

This commit is contained in:
Andrei Belov
2019-07-04 14:14:29 +03:00
parent bcb9048c46
commit e1de5bcfab
5 changed files with 7 additions and 7 deletions

View File

@@ -1 +1 @@
DAEMON_ARGS="--log /var/log/unit.log --pid /run/unit.pid"
DAEMON_ARGS="--log /var/log/unit.log --pid /var/run/unit.pid"

View File

@@ -31,7 +31,7 @@ umask 022
case "$1" in
start)
log_daemon_msg "Starting $DESC" "$NAME"
if start-stop-daemon --start --quiet --pidfile /run/$NAME.pid \
if start-stop-daemon --start --quiet --pidfile /var/run/$NAME.pid \
--exec $DAEMON -- $DAEMON_ARGS; then
log_end_msg 0
else

View File

@@ -5,7 +5,7 @@ After=network-online.target
[Service]
Type=forking
PIDFile=/run/unit.pid
PIDFile=/var/run/unit.pid
EnvironmentFile=-/etc/default/unit
ExecStart=/usr/sbin/unitd $DAEMON_ARGS
ExecReload=