summaryrefslogtreecommitdiff
path: root/package/dansguardian
diff options
context:
space:
mode:
Diffstat (limited to 'package/dansguardian')
-rw-r--r--package/dansguardian/files/dansguardian.init6
1 files changed, 5 insertions, 1 deletions
diff --git a/package/dansguardian/files/dansguardian.init b/package/dansguardian/files/dansguardian.init
index 8c883d4bf..2f2547f12 100644
--- a/package/dansguardian/files/dansguardian.init
+++ b/package/dansguardian/files/dansguardian.init
@@ -11,10 +11,14 @@ autostart)
exec sh $0 start
;;
start)
+ if [ ! -f /var/log/dansguardian-access.log ];then
+ touch /var/log/dansguardian-access.log
+ chown proxy:proxy /var/log/dansguardian-access.log
+ fi
dansguardian
;;
stop)
- killall dansguardian
+ pkill dansguardian
;;
restart)
sh $0 stop