Explorar o código

feature(systemd): add reload command

bigeagle %!s(int64=9) %!d(string=hai) anos
pai
achega
4f3a91cda7
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      systemd/tunasync-worker.service

+ 1 - 0
systemd/tunasync-worker.service

@@ -8,6 +8,7 @@ User=tunasync
 PermissionsStartOnly=true
 ExecStartPre=/usr/bin/cgcreate -t tunasync -a tunasync -g cpu:tunasync
 ExecStart=/home/bin/tunasync worker -c /etc/tunasync/worker.conf --with-systemd
+ExecReload=/bin/kill -SIGHUP $MAINPID
 ExecStopPost=/usr/bin/cgdelete cpu:tunasync
 
 [Install]