diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2018-09-04 09:37:18 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2018-09-04 09:41:49 +0000 |
commit | 143fcae78e7b5ce0623366339466ba555b2af27a (patch) | |
tree | f184544d1d59752d605d061725cf3cac68f43605 /main/pingu | |
parent | ee206d049df371ed3f3ffec324c4c749b0fefa6b (diff) | |
download | aports-143fcae78e7b5ce0623366339466ba555b2af27a.tar.bz2 aports-143fcae78e7b5ce0623366339466ba555b2af27a.tar.xz |
main/pingu: create piddir on service start
Create the directory for the pidfile in openrc init.d script.
ref #9369
Diffstat (limited to 'main/pingu')
-rw-r--r-- | main/pingu/APKBUILD | 8 | ||||
-rw-r--r-- | main/pingu/pingu.initd | 1 |
2 files changed, 3 insertions, 6 deletions
diff --git a/main/pingu/APKBUILD b/main/pingu/APKBUILD index 19f9bb9c18..e67eb0b780 100644 --- a/main/pingu/APKBUILD +++ b/main/pingu/APKBUILD @@ -2,7 +2,7 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=pingu pkgver=1.5 -pkgrel=1 +pkgrel=2 pkgdesc="Small daemon that pings hosts and executes a script when status change" url="https://git.alpinelinux.org/cgit/pingu" arch="all" @@ -65,9 +65,5 @@ _lua() { mv "$pkgdir"/usr/lib "$pkgdir"/usr/share "$subpkgdir"/usr/ } -md5sums="3454ef7723e446d917c389c0615c62b4 pingu-1.5.tar.gz -dd46546d05395893a1624e467b04b1d4 pingu.initd" -sha256sums="1caaef8765e7bd6950be8109a58187ad529237eec89742d923c1888f4c2a9f6d pingu-1.5.tar.gz -1d4388e96a257c0bc01a585df36c0e6bc6c1ba53c9bb0b67290eaff7e8a6d1b3 pingu.initd" sha512sums="71e5fbe93f831f24d168957cdeaff2817a22f407575316d6515755bec760d10724821070549eaab562924237b96976a1a776ca903d5fe0cd9f9b69a38eadd8c9 pingu-1.5.tar.gz -93859ab4e84d07c776915045b3fe533de551c55465dab4aa283f5606c0e8a439875f91e0e1db419bc97b01f7e4c4b0f5d434885edcf9ad77e6f65f6f27715de8 pingu.initd" +b8df9b7bec561e234a2f74514a3513ceac222477f28b9306f40aed6398f65b4e2ce84dfbbf95c0ffaedd526c4283739bf88248d699bbf7d9dac7e27e5cc5a62b pingu.initd" diff --git a/main/pingu/pingu.initd b/main/pingu/pingu.initd index 517bdd892c..1f7022fe4a 100644 --- a/main/pingu/pingu.initd +++ b/main/pingu/pingu.initd @@ -13,6 +13,7 @@ depend() { } start_pre() { + checkpath --directory ${pidfile%/*} if ! [ -f "$route_rules" ]; then return 0 fi |