瀏覽代碼

feature(systemd): add reload command

bigeagle 9 年之前
父節點
當前提交
4f3a91cda7
共有 1 個文件被更改,包括 1 次插入0 次删除
  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]