summaryrefslogtreecommitdiff
path: root/desktop/slim/rc.slim
diff options
context:
space:
mode:
authorMartin Lefebvre <dadexter@gmail.com>2010-05-11 14:03:47 +0200
committerMichiel van Wessem <michiel@slackbuilds.org>2010-05-11 14:03:47 +0200
commitc58610211671238bb73eb59a1f9600185fdf2534 (patch)
tree73933c59c64b13ad918c98e28b94b4dabbccaa5c /desktop/slim/rc.slim
parent1dcd7db5a42d6df1dbc89f925991d02f9f0cd989 (diff)
downloadslackbuilds-c58610211671238bb73eb59a1f9600185fdf2534.tar.gz
desktop/slim: Initial import
Diffstat (limited to 'desktop/slim/rc.slim')
-rw-r--r--desktop/slim/rc.slim24
1 files changed, 24 insertions, 0 deletions
diff --git a/desktop/slim/rc.slim b/desktop/slim/rc.slim
new file mode 100644
index 0000000000..056a163842
--- /dev/null
+++ b/desktop/slim/rc.slim
@@ -0,0 +1,24 @@
+#!/bin/sh
+#
+# /etc/rc.d/slim: start/stop slim
+#
+
+case $1 in
+start)
+ /usr/bin/slim -d
+ ;;
+stop)
+ killall /usr/bin/slim
+ rm -f /var/run/slim.lock
+ ;;
+restart)
+ $0 stop
+ sleep 2
+ $0 start
+ ;;
+*)
+ echo "usage: $0 [start|stop|restart]"
+ ;;
+esac
+
+# End of file