openl2tp.org
http://forums.openl2tp.org/

Init Script on Debian Sid
http://forums.openl2tp.org/viewtopic.php?f=3&t=21
Page 1 of 1

Author:  Stony [ Sun Dec 27, 2009 9:05 pm ]
Post subject:  Init Script on Debian Sid

Hi,

after building the source from scratch as a debian package I hit two problems.

Fist one was a "name clash" in defining "AUTH_NONE". It's been solved here already: viewtopic.php?f=3&t=11

The other one is the init.d script of the package. there's an error in the insserv-header:
Code:
# Required-Start:    2 3 4 5
# Required-Stop:     0 1 6


the "Required-Start:" and "Required-Stop:" should hold the needed (boot-)facilities from /etc/insserv.conf and not the runlevel information (!).

I changed it to the following:

Code:
# Required-Start:    $network $remote_fs $syslog
# Required-Stop:     $network $remote_fs $syslog


and everything works as exptected :)

Here's a small patch:

Code:

--- init.d.old  2008-09-24 22:40:44.000000000 +0200
+++ init.d      2009-12-27 20:57:40.465523561 +0100
@@ -4,8 +4,8 @@
# Provides:          openl2tpd
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
-# Required-Start:    2 3 4 5
-# Required-Stop:     0 1 6
+# Required-Start:    $network $remote_fs $syslog
+# Required-Stop:     $network $remote_fs $syslog
# Short-Description: Start openl2tp daemon
# Description:       Start openl2tp daemon
### END INIT INFO



Merry X-Mas and a happy new year !

Greetz, Stony!

Page 1 of 1 All times are UTC [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/