View previous topic :: View next topic |
Author |
Message |
neptune n00b


Joined: 11 Oct 2002 Posts: 49
|
Posted: Tue Jun 08, 2004 11:34 am Post subject: PPTPd startup script [SOLVED] |
|
|
Hello all,
I try to setup a VPN server with Gentoo and Poptop PPTPd. My main problem here is how to start it? I can't find any startup script in /etc/init.d. If I start it from webmin it works.
Can anyone help out?
Thanks in advance,
Last edited by neptune on Wed Jun 09, 2004 2:50 pm; edited 1 time in total |
|
Back to top |
|
 |
neptune n00b


Joined: 11 Oct 2002 Posts: 49
|
Posted: Wed Jun 09, 2004 2:48 pm Post subject: |
|
|
So... no answer, have mine written. For those who are interested, here's it:
Code: | #!/sbin/runscript
# Really simple startup scrip for PopTop pptpd
# Deeply inspired from /etc/init.d/sshd ;-)
# by Fabian Vilers (fabian@vilers.net)
depend() {
use logger dns
need net
}
start() {
ebegin "Starting pptpd"
start-stop-daemon --start --quiet --pidfile /var/run/pptpd.pid \
--startas /usr/sbin/pptpd
eend $?
}
stop() {
ebegin "Stopping pptpd"
start-stop-daemon --stop --quiet --pidfile /var/run/pptpd.pid
eend $?
}
|
Maybe startup script guru can check if it is correct. In fact, it works on my machine but the pid file is not removed when service is shutdown. I don't know if this is the normal behaviour. |
|
Back to top |
|
 |
|
|
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
|
|