summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-admin/usermin/files/usermin-1.540-r1.init')
-rw-r--r--app-admin/usermin/files/usermin-1.540-r1.init38
1 files changed, 38 insertions, 0 deletions
diff --git a/app-admin/usermin/files/usermin-1.540-r1.init b/app-admin/usermin/files/usermin-1.540-r1.init
new file mode 100644
index 000000000000..90389764e698
--- /dev/null
+++ b/app-admin/usermin/files/usermin-1.540-r1.init
@@ -0,0 +1,38 @@
+#!/sbin/runscript
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+depend() {
+ use net logger
+}
+
+
+checkconfig() {
+ if [ -f /etc/usermin/config ]; then
+ return 0;
+ else
+ eerror "Error starting usermin. Have you run '/usr/libexec/usermin/setup.sh'?"
+ return 1;
+ fi
+}
+
+start() { # copied from /etc/usermin/start
+ checkconfig || return 1
+ ebegin "Starting Usermin"
+
+ LANG=
+ export LANG
+
+ unset PERLIO
+ export PERLIO
+ start-stop-daemon --start --quiet --user usermin \
+ --exec /usr/libexec/usermin/miniserv.pl -- /etc/usermin/miniserv.conf
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping Usermin"
+ start-stop-daemon --stop --pidfile /var/run/usermin.pid --quiet
+ eend $?
+}