Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
init script for streamripper
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
dark-wulf
n00b
n00b


Joined: 02 Feb 2006
Posts: 40

PostPosted: Wed Oct 23, 2013 7:00 pm    Post subject: init script for streamripper Reply with quote

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!!!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum