diff options
author | Carlo Landmeter <clandmeter@gmail.com> | 2014-06-25 11:34:19 +0200 |
---|---|---|
committer | Carlo Landmeter <clandmeter@gmail.com> | 2014-06-25 11:36:14 +0200 |
commit | 295eec75ce7b6de2f4ad9144ed0344d57b145288 (patch) | |
tree | 2785acf1c86a11499f6803d858036df9bf2031b3 /main/zoneminder/zoneminder.initd | |
parent | 18ea80fb4ac96d340e2de9b1a3ec730dcea0b0ba (diff) | |
download | aports-295eec75ce7b6de2f4ad9144ed0344d57b145288.tar.bz2 aports-295eec75ce7b6de2f4ad9144ed0344d57b145288.tar.xz |
main/zoneminder: create run dir and make busybox compat
Diffstat (limited to 'main/zoneminder/zoneminder.initd')
-rw-r--r-- | main/zoneminder/zoneminder.initd | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/main/zoneminder/zoneminder.initd b/main/zoneminder/zoneminder.initd index 592faca6aa..bfb32318dc 100644 --- a/main/zoneminder/zoneminder.initd +++ b/main/zoneminder/zoneminder.initd @@ -16,6 +16,7 @@ start() { if status > /dev/null; then ewarn "$name already started" else + mkrundir $command start fi eend $? @@ -51,3 +52,9 @@ perms() { chown -R $ZM_WEB_USER:$ZM_WEB_GROUP \ /var/*/zoneminder } + +mkrundir() { + . /etc/zm.conf + install -d -o $ZM_WEB_USER -g $ZM_WEB_GROUP \ + /var/run/zoneminder +} |