Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Seems like an easy enough thing to do but I can't seem to find any documentation on how to do it... I'm running 9.04 and have pptpd running fine but when I reboot the server it comes back up with pptpd NOT running and I have to go in and manually start it. Is there something in the pptpd config that can be set or does there need to be some other config to start pptpd on bootup? When I look in webmin it shows it's set to run at bootup but I still have to go to webmin/network/pptpd and use the start poptop button on the page to get it started.
The simplest thing is probably to add an entry to the file /etc/rc.local
If the file already exists, edit it and add the command to start pptpd before the line that says exit 0. Save the file and make sure it is executable (chmod a+x /etc/rc.local). The file gets executed on start up after all the other multiuser startup files are run.
OK.. Thanks for the info. I'm not very familiar with Linux yet but when I open rc.local I'm not sure where I can put the pptpd start statement. There are many commands and statements already there and I'm not sure where it is safe to add that line?
OK.. Thanks for the info. I'm not very familiar with Linux yet but when I open rc.local I'm not sure where I can put the pptpd start statement. There are many commands and statements already there and I'm not sure where it is safe to add that line?
There are two rc.local files, one in /etc/rc.local and one at /etc/init.d/rc.local. It's the former you want. In any case just add it as the last line in the file, or if the file ends with 'exit 0' put it as the line before that.
OK.. Here is what I have in rc.local in the directory you mentioned above. I don't see "exit 0" so should I just put pptpd start at the end of the file???
#! /bin/sh
### BEGIN INIT INFO
# Provides: rc.local
# Required-Start: $remote_fs
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop:
# Short-Description: Run /etc/rc.local if it exist
### END INIT INFO
PATH=/sbin:/usr/sbin:/bin:/usr/bin
. /lib/init/vars.sh
. /lib/lsb/init-functions
do_start() {
if [ -x /etc/rc.local ]; then
[ "$VERBOSE" != no ] && log_begin_msg "Running local boot scripts (/etc/rc.local)"
/etc/rc.local
ES=$?
[ "$VERBOSE" != no ] && log_end_msg $ES
return $ES
fi
}
case "$1" in
start)
do_start
;;
restart|reload|force-reload)
echo "Error: argument '$1' not supported" >&2
exit 3
;;
stop)
;;
*)
echo "Usage: $0 start|stop" >&2
exit 3
;;
esac
OK.. Found the right rc.local file added start pptpd and still no dice.. Really strange. I can do a chkconfig and it shows that pptpd is ON (and will show that it's setup for runlevel 345. No matter what I do it doesn't actually start unless I use webmin and go to network/pptpd and click start from that page. I can't even figure out how to manual start it from the command line since it claims to be running from the command line even thought it is not. Anyone see this before?
Yo... Do any of you clowns actually know how to do anything? If somebody asked me something about 9500 networking related topics I'd likely have an answer but I've been looking for some decent documentation or someone who can answer this very basic question with no luck... I don't know Linux YET but if this represents based on what I'm seeing so far I'll be a F'n expert before I get a simple answer!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.