dark-wulf n00b
Joined: 02 Feb 2006 Posts: 40
|
Posted: Wed Oct 23, 2013 7:00 pm Post subject: init script for streamripper |
|
|
Hi everyone,
i want to make a init script for streamripper with a config file
Code: |
#!/sbin/runscript
# Distributed under the terms of the GNU General Public License v2
depend() {
need net
}
checkconfig() {
if ! [ -f /etc/streamripper.conf ]; then
eerror "Configuration file /etc/streamripper.conf does not exist."
return 1
fi
return 0
}
start() {
checkconfig || return 1
ebegin "Starting Streamripper"
start-stop-daemon --start --exec /usr/bin/streamripper --pidfile /run/streamripper.pid --make-pidfile /etc/streamripper.conf
eend $?
}
stop() {
ebegin "Stopping Streamripper"
start-stop-daemon --stop --exec /usr/bin/streamripper --pidfile /run/streamripper.pid
eend $?
}
|
but i don't know how to get the config to be used it contains just one line with the server and other options.
Thanks for any help
Greetings
Sebastian _________________ Gentoo rulez!!!
Gentoo for every one!!!
Gentoo for president!!! |
|