LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-31-2012, 06:08 PM   #1
c_porter84
LQ Newbie
 
Registered: Dec 2011
Posts: 3

Rep: Reputation: Disabled
start-stop-daemon command not found in slackware


I just installed ushare on my slackware server so that i can share media to my xbox. I got it installed using this .tgz package: http://repository.slacky.eu/slackwar...a/ushare/1.1a/

I followed this tutorial on how to configure the /etc/ushare.conf file to support xbox. Pretty straightforward: http://nazham.com/2009/03/09/how-to-...360-and-linux/

When i try and restart rc.ushare, it gives me this error message: /etc/rc.d/rc.ushare: line 30: /lib/lsb/init-functions: No such file or directory

I went through the file and commented out the lines that got the "command not found" message or "no such file or directory", and here they are:

#!/bin/sh -e
#
# uShare init script
#
### BEGIN INIT INFO
# Provides: ushare
# Required-Start: $local_fs $syslog $network
# Should-Start:
# Required-Stop:
# Should-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: uShare
# Description: uShare UPnP (TM) A/V & DLNA Media Server
# You should edit configuration in /etc/ushare.conf file
# See http://ushare.geexbox.org for details
### END INIT INFO

PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
DAEMON=/usr/bin/ushare
NAME=ushare
DESC="uShare UPnP A/V & DLNA Media Server"
PIDFILE=/var/run/ushare.pid
CONFIGFILE=/etc/ushare.conf

# abort if no executable exists
[ -x $DAEMON ] || exit 0

# Get lsb functions
here--->#. /lib/lsb/init-functions
here--->#. /etc/default/rcS

[ -f /etc/default/ushare ] && . /etc/default/ushare

checkpid() {
[ -e $PIDFILE ] || touch $PIDFILE
}

check_shares() {
if [ -r "$CONFIGFILE" ]; then
. $CONFIGFILE
[ -n "$USHARE_DIR" ] && return 0
fi
return 1
}

case "$1" in
start)
here---># log_daemon_msg "Starting $DESC: $NAME"
if ! $(check_shares); then
log_warning_msg "No shares avalaible ..."
log_end_msg 0
else
checkpid
here---># start-stop-daemon --start --quiet --background --oknodo \
here---># --make-pidfile --pidfile $PIDFILE \
here---># --exec $DAEMON -- $USHARE_OPTIONS
here---># log_end_msg $?
fi
;;
stop)
here---># log_daemon_msg "Stopping $DESC: $NAME"
here---># start-stop-daemon --stop --signal 2 --quiet --oknodo --pidfile $PIDFILE
here---># log_end_msg $?
;;
reload|force-reload)
log_daemon_msg "Reloading $DESC: $NAME"
start-stop-daemon --stop --signal 1 --quiet --oknodo --pidfile $PIDFILE --exec $DAEMON
log_end_msg $?
;;
restart)
$0 stop
$0 start
;;
*)
N=/etc/init.d/$NAME
log_success_msg "Usage: $N {start|stop|restart|reload|force-reload}"
exit 1
;;
esac

exit 0



How do i fix this???
 
Old 02-01-2012, 07:48 PM   #2
padeen
Member
 
Registered: Sep 2009
Location: Perth, W.A.
Distribution: Slackware, Debian, Gentoo, FreeBSD, OpenBSD
Posts: 207

Rep: Reputation: 41
This seems to address it: http://www.linuxquestions.org/questi...ckware-888116/

You might find the repository.slacky.eu site has a SysV type package to install start-stop-daemon and its dependencies. Or not. I've found that repository to be a bit spotty about making sure its packages will actually work on Slackware.

Or you could follow the advice in the first link and write your own script to put in /etc/rc.d/ . Also, look at /etc/rc.d/init.d/{README.functions, functions}, which look as though they may contain similar functions to what your script is trying to do.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Scripting with start-stop-daemon agentgates Linux - Server 6 02-01-2012 03:59 PM
[SOLVED] start-stop-daemon in Slackware? qlands Slackware 6 06-24-2011 04:03 PM
start-stop-daemon for linux eliufoo Linux - Software 1 02-07-2008 02:12 AM
start-stop-daemon: user `man' not found cccc Debian 4 03-06-2007 04:03 AM
Logging with Start stop daemon bigsness Linux - General 0 01-19-2005 03:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:30 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration