Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
PPTPd startup script [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
neptune
n00b
n00b


Joined: 11 Oct 2002
Posts: 49

PostPosted: Tue Jun 08, 2004 11:34 am    Post subject: PPTPd startup script [SOLVED] Reply with quote

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
View user's profile Send private message
neptune
n00b
n00b


Joined: 11 Oct 2002
Posts: 49

PostPosted: Wed Jun 09, 2004 2:48 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
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