Fix Duplicati shutdown issue on Synology

This commit is contained in:
drwtsn32x
2018-12-27 12:54:08 -08:00
parent 34d86bb104
commit 4e841ba8fd
+1 -1
View File
@@ -68,7 +68,7 @@ DaemonStop() {
DaemonStatus
if [ $? == 1 ]; then
echo "Stopping ${PACKAGE_NAME_SIMPLE}."
kill -- -$(ps -o pgid= $(cat "$PID_FILE") | grep -o '[0-9]*')
pkill -P $(cat "$PID_FILE")
rm -f "$PID_FILE"
rm -f /usr/local/etc/nginx/conf.d/dsm.duplicati.conf