summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-admin/ajenti/files')
-rw-r--r--app-admin/ajenti/files/ajenti19
1 files changed, 19 insertions, 0 deletions
diff --git a/app-admin/ajenti/files/ajenti b/app-admin/ajenti/files/ajenti
new file mode 100644
index 000000000..add7505a0
--- /dev/null
+++ b/app-admin/ajenti/files/ajenti
@@ -0,0 +1,19 @@
+#!/sbin/runscript
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+depend() {
+ use net
+}
+
+start() {
+ ebegin "Starting Ajenti"
+ start-stop-daemon --start --exec /usr/bin/ajenti-panel --pidfile /var/run/ajenti.pid -- --start
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping Ajenti"
+ start-stop-daemon --stop --exec /usr/bin/ajenti-panel --pidfile /var/run/ajenti.pid
+ eend $?
+}