initscript for sBNC
Bug #716987 reported by
felix-kunsmann
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
shroudBNC |
In Progress
|
Wishlist
|
Gunnar Beutner |
Bug Description
Create an initscript for sBNC which can be used to automatically start sBNC via /etc/init.d or something.
tags: | added: compilation-and-installation |
Changed in shroudbnc: | |
importance: | Medium → Wishlist |
To post a comment you must log in.
#!/bin/bash
# Initscript for sBNC
# Author: Axel 'shenziro' Hartwig
### Config ###
# Change UID/GID after starting to <uid|username> [:<gid: groupname> ] "ircstuff: ircstuff"
CHANGEUIDGID=
# Path to the program (not the name of the executeable; no trailing slash) "/home/ opt/sbnc1. 3"
PROGPATH=
# Name of the executeable in $PROGPATH
PROGEXEC="sbnc"
# Program parameters
PROGPARAMS=""
# Name of the program (only used to display it during start/stop in this script)
PROGNAME="sBNC"
### Script ###
function do_start {
echo -n "Starting $PROGNAME: "
if [ $returnval == 0 ]; then
else
fi
}
function do_stop {
echo -n "Stopping $PROGNAME: "
if [ $returnval == 0 ]; then
else
fi
}
case $1 in
do_start
do_stop
do_stop
do_start
echo "Usage: $0 {start| stop|restart} " >&2
exit 1
start)
;;
stop)
;;
restart)
;;
*)
;;
esac