aboutsummaryrefslogtreecommitdiffstats
path: root/main/smokeping/smokeping.initd
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2014-12-07 12:03:40 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2014-12-07 12:03:40 +0000
commit348a311a42701fe5c2a9a609f5f622c235d278cc (patch)
tree3fcb1f31f2ba2e75d97ef4d983fe103d3d4d6f3e /main/smokeping/smokeping.initd
parent2b07323da607f92eb39310f6301c0e07aa320a7d (diff)
downloadaports-348a311a42701fe5c2a9a609f5f622c235d278cc.tar.bz2
aports-348a311a42701fe5c2a9a609f5f622c235d278cc.tar.xz
main/smokeping: use checkpath to create dir for pidfile
Diffstat (limited to 'main/smokeping/smokeping.initd')
-rw-r--r--main/smokeping/smokeping.initd6
1 files changed, 1 insertions, 5 deletions
diff --git a/main/smokeping/smokeping.initd b/main/smokeping/smokeping.initd
index e7b5106442..cbe2ed6dd0 100644
--- a/main/smokeping/smokeping.initd
+++ b/main/smokeping/smokeping.initd
@@ -20,11 +20,7 @@ checkconfig() {
start() {
checkconfig || return 1
-
- if [ ! -d /var/run/smokeping/ ]; then
- mkdir /var/run/smokeping/
- fi
- chown smokeping:smokeping /var/run/smokeping/
+ checkpath --directory --owner smokeping:smokeping /var/run/smokeping
ebegin "Starting smokeping"
LC_ALL=C \