systemd services: Enable config reload with SIGUSR1
This commit is contained in:
parent
eb2ebed61d
commit
bc1548445b
|
|
@ -58,7 +58,11 @@ adjusted without a restart.
|
|||
|
||||
To reload configuration, execute the `reload` option of the startup script.
|
||||
|
||||
On Ubuntu or Debian:
|
||||
On Ubuntu or Debian (systemd):
|
||||
|
||||
sudo systemctl reload aprsc
|
||||
|
||||
On Ubuntu or Debian, old-fashioned:
|
||||
|
||||
sudo service aprsc reload
|
||||
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@ Documentation=http://he.fi/aprsc/, man:aprsc(8)
|
|||
Type=simple
|
||||
ExecStartPre=/opt/aprsc/sbin/aprsc-prepare-chroot.sh
|
||||
ExecStart=/opt/aprsc/sbin/aprsc -u aprsc -t /opt/aprsc -e info -o file -r logs -c etc/aprsc.conf
|
||||
ExecReload=/bin/kill -USR1 $MAINPID
|
||||
PIDFile=/opt/aprsc/logs/aprsc.pid
|
||||
TimeoutStopSec=5
|
||||
RestartSec=5
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@ Documentation=http://he.fi/aprsc/, man:aprsc(8)
|
|||
Type=simple
|
||||
ExecStartPre=/opt/aprsc/sbin/aprsc-prepare-chroot.sh
|
||||
ExecStart=/opt/aprsc/sbin/aprsc -n aprsc-%i -u aprsc -t /opt/aprsc -e info -o file -r logs -c etc/aprsc-%i.conf
|
||||
ExecReload=/bin/kill -USR1 $MAINPID
|
||||
PIDFile=/opt/aprsc/logs/aprsc-%i.pid
|
||||
TimeoutStopSec=5
|
||||
RestartSec=5
|
||||
|
|
|
|||
Loading…
Reference in New Issue