Skip to content

Commit

Permalink
added an example cinchize init file
Browse files Browse the repository at this point in the history
  • Loading branch information
netfeed committed Nov 6, 2010
1 parent 9f9f121 commit 0add9ef
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions examples/cinchize.init
@@ -0,0 +1,41 @@
#!/bin/bash
# Copyright (c) 2010 Victor Bergöö
# This program is made available under the terms of the MIT License.

# assumes that the config file is located at /etc/cinchize.json

RETVAL=0;
NETWORK="freenode"

start() {
cinchize -ds --start $NETWORK
}

status() {
cinchize -s --status $NETWORK
}

stop() {
cinchize -s --stop $NETWORK
}

restart() {
cinchize -ds --restart $NETWORK
}

case "$1" in
start)
start
;;
status)
status
;;
stop)
stop
;;
restart)
restart
;;
esac

exit $RETVAL

0 comments on commit 0add9ef

Please sign in to comment.