From 4f3a91cda70b14156053545a7b0732e0617a62c6 Mon Sep 17 00:00:00 2001 From: bigeagle Date: Mon, 2 May 2016 22:32:31 +0800 Subject: [PATCH] feature(systemd): add reload command --- systemd/tunasync-worker.service | 1 + 1 file changed, 1 insertion(+) diff --git a/systemd/tunasync-worker.service b/systemd/tunasync-worker.service index 95b9f47..1ee11dc 100644 --- a/systemd/tunasync-worker.service +++ b/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]