summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Bar-Lev <alonbl@gentoo.org>2018-09-23 22:09:17 +0300
committerAlon Bar-Lev <alonbl@gentoo.org>2018-09-28 02:51:24 +0300
commitd153b8af83cca832140d7f7e28b96f4fae199438 (patch)
tree55b9884c087075249ee2a77df30907db28490f1c /dev-libs/openct
parentdev-libs/openct: remove unused file (diff)
downloadgentoo-d153b8af83cca832140d7f7e28b96f4fae199438.tar.gz
gentoo-d153b8af83cca832140d7f7e28b96f4fae199438.tar.bz2
gentoo-d153b8af83cca832140d7f7e28b96f4fae199438.zip
dev-libs/openct: cleanup initd
Package-Manager: Portage-2.3.49, Repoman-2.3.10
Diffstat (limited to 'dev-libs/openct')
-rw-r--r--dev-libs/openct/files/openct.initd8
1 files changed, 2 insertions, 6 deletions
diff --git a/dev-libs/openct/files/openct.initd b/dev-libs/openct/files/openct.initd
index 79f2336f3ea1..ecf574f2e31c 100644
--- a/dev-libs/openct/files/openct.initd
+++ b/dev-libs/openct/files/openct.initd
@@ -6,19 +6,15 @@ depend() {
need localmount
}
-checkconfig() {
+start_pre() {
if [ ! -e /etc/openct.conf ] ; then
eerror "You need an /etc/openct.conf file to run OpenCT"
return 1
fi
- return 0
+ checkpath -d -m 0750 -o openctd:openct /var/run/openct
}
start() {
- checkconfig || return 1
-
- checkpath -d -m 0750 -o openctd:openct /var/run/openct
-
ebegin "Starting OpenCT"
/usr/sbin/openct-control init
eend $?