LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-11-2009, 04:07 PM   #1
MartyJay
Member
 
Registered: Oct 2005
Location: Newmarket, On
Distribution: Debian Squeeze
Posts: 55

Rep: Reputation: 15
debian lennywon't startup koha daemons at boot


I have installed Koha on Debian Lenny.
It does work well, but I have to manually start the koha-zebra-ctl.sh by entering /usr/share/koha/bin/koha-zebra-ctl.sh start

The idea is, however, that this starts at boot from /etc/init.d/koha-zebra-daemon.
Like /etc/init.d/koha-zebra-daemon start (does not work now)

In the koha-zebra-daemon file I have:

#!/bin/sh

# Quick start-stop-daemon example, derived from Debian /etc/init.d/ssh
set -e

# Must be a valid filename
NAME=koha-zebra-daemon
PIDFILE=/var/run/$NAME.pid
#This is the command to be run, give the full pathname
DAEMON=/usr/share/koha/bin/koha-zebra-ctl.sh
DAEMON_OPTS="--baz=quux"

export PATH="${PATH:+$PATH:}/usr/sbin:/sbin"

case "$1" in
start)
echo -n "Starting daemon: "$NAME
start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON -- $DAEMON_OPTS
echo "."
;;
stop)
echo -n "Stopping daemon: "$NAME
start-stop-daemon --stop --quiet --oknodo --pidfile $PIDFILE
echo "."
;;
restart)
echo -n "Restarting daemon: "$NAME
start-stop-daemon --stop --quiet --oknodo --retry 30 --pidfile $PIDFILE
start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON -- $DAEMON_OPTS
echo "."
;;

*)
echo "Usage: "$1" {start|stop|restart}"
exit 1
esac

exit 0

I have made a symbolic link;
ln -s /usr/share/koha/bin/koha-zebra-ctl.sh /etc/init.d/koha-zebra-daemon

I have tried checking whether the symbolic link exists with readlink, but this never seems to return anything anywhere.

Frankly, I am really puzzled. I have run out of ideas. Any help is welcome,

Marty
 
Old 10-11-2009, 06:37 PM   #2
lutusp
Member
 
Registered: Sep 2009
Distribution: Fedora
Posts: 835

Rep: Reputation: 102Reputation: 102
Quote:
Originally Posted by MartyJay View Post
I have installed Koha on Debian Lenny.
It does work well, but I have to manually start the koha-zebra-ctl.sh by entering /usr/share/koha/bin/koha-zebra-ctl.sh start

The idea is, however, that this starts at boot from /etc/init.d/koha-zebra-daemon.

[ snip ]

Frankly, I am really puzzled. I have run out of ideas. Any help is welcome,

Marty
To make a service start automatically:

Code:
# chkconfig (service name) on
This can also be done using various GUI utilities that vary from distribution to distribution.
 
Old 10-11-2009, 07:11 PM   #3
MartyJay
Member
 
Registered: Oct 2005
Location: Newmarket, On
Distribution: Debian Squeeze
Posts: 55

Original Poster
Rep: Reputation: 15
I just wish it were that simple. For some reason Debian requires you to be a magician to startup a daemon at boot. But thanks, I'll try again.

Quote:
Originally Posted by lutusp View Post
To make a service start automatically:

Code:
# chkconfig (service name) on
This can also be done using various GUI utilities that vary from distribution to distribution.
 
Old 10-11-2009, 07:12 PM   #4
MartyJay
Member
 
Registered: Oct 2005
Location: Newmarket, On
Distribution: Debian Squeeze
Posts: 55

Original Poster
Rep: Reputation: 15
If it were only that simple. Debain requires you to be a magician to get a daemon started at boot. But thanks, I'll try again.
 
Old 10-11-2009, 08:06 PM   #5
lutusp
Member
 
Registered: Sep 2009
Distribution: Fedora
Posts: 835

Rep: Reputation: 102Reputation: 102
Quote:
Originally Posted by MartyJay View Post
If it were only that simple. Debain requires you to be a magician to get a daemon started at boot. But thanks, I'll try again.
Please .. say what happened. Did you run my suggestion as root? What happened?
 
Old 10-11-2009, 08:42 PM   #6
MartyJay
Member
 
Registered: Oct 2005
Location: Newmarket, On
Distribution: Debian Squeeze
Posts: 55

Original Poster
Rep: Reputation: 15
Sorry for not giving more info, yes I did try, it does not do anything.

debian:/etc/init.d# chkconfig koha-zebra-daemon on
debian:etc/init.d#

It definitely does not start the zebra server. I am thinking something's wrong in my /etc/init.d/koha-zebra-daemon file, but I have been wrong before...
 
  


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
how do i add daemons to the startup? snip128 Debian 6 07-15-2005 09:33 AM
startup daemons? c_olin3404 Slackware 6 05-16-2005 03:21 PM
mysql spawns 10 daemons on startup mfitzpat Linux - Software 0 09-24-2004 02:57 PM
Daemons upon Fluxbox Startup Chu Linux - Newbie 3 03-17-2004 03:28 PM
loading services/daemons at startup sirpimpsalot Linux - Newbie 3 03-05-2004 06:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:11 PM.

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