Gentoo Archives: gentoo-user

From: Fredrik Tolf <fredrik@×××××××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Init scripts acting weird with baselayout 1.12
Date: Thu, 07 Sep 2006 22:07:21
Message-Id: 1157666426.11740.5.camel@pc7.dolda2000.com
1 Ever since I got baselayout upgraded to 1.12, the init scripts that I
2 have written for a couple of program are acting really weird. What
3 happens is that they start the program normally, but then, when the
4 program daemonizes and detaches, it immediately kills it (with a
5 SIGTERM).
6
7 These scripts are also really simple, so I don't understand at all what
8 I could be doing wrong. Here's a sample:
9
10 #!/sbin/runscript
11
12 opts="start stop restart"
13
14 depend() {
15 need net
16 }
17
18 start() {
19 ebegin "Starting cidd"
20 start-stop-daemon -S -p /var/run/cidd.pid -qx /usr/local/sbin/cidd
21 eend $?
22 }
23
24 stop() {
25 ebegin "Stopping cidd"
26 start-stop-daemon -K -p /var/run/cidd.pid -qx /usr/local/sbin/cidd
27 eend $?
28 }
29
30 Is there anything wrong with this script that should cause it do act as
31 I described?
32
33 Fredrik Tolf
34
35
36 --
37 gentoo-user@g.o mailing list

Replies

Subject Author
Re: [gentoo-user] Init scripts acting weird with baselayout 1.12 Richard Fish <bigfish@××××××××××.org>