LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-26-2004, 04:43 PM   #1
orange400
Member
 
Registered: Mar 2003
Location: Bellevue, WA
Distribution: Arch w/ XFCE
Posts: 834

Rep: Reputation: 30
Making programs start on power-on


I run an FTP server, and I just run the programs needed every time I restart it for whatever reason. But it would be soooooo nice if I could get some progs running when it goes through booting time. I need noip2 and proftpd to start on their own, can anyone help me do that?

Thanks everyone!
 
Old 05-26-2004, 04:52 PM   #2
Razza2004
Member
 
Registered: Mar 2004
Location: Australia
Distribution: Slackware 10
Posts: 32

Rep: Reputation: 15
I can't remember the exact file, but for most distros its in /etc/rc.d (or whatever the folder is)
EDIT: /etc/rc.d/rc.local
Just add the command line thingys to there

Last edited by Razza2004; 05-26-2004 at 04:53 PM.
 
Old 05-26-2004, 04:53 PM   #3
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
Which distrobution are you talking about? For redhat you can use the command line:

chkconfig --list

tool or in the gui you can use:

redhat-config-services

Not sure about Mandrake or Debian though.
 
Old 05-26-2004, 05:03 PM   #4
Razza2004
Member
 
Registered: Mar 2004
Location: Australia
Distribution: Slackware 10
Posts: 32

Rep: Reputation: 15
Ive used it in Slackware to do things like:
mount -t ntfs /dev/hda1 /mnt/windows
(etc)

So its just non-gui tools, anything that you would run from bash that doesn't need Xwindows I would guess.
 
Old 05-26-2004, 05:13 PM   #5
orange400
Member
 
Registered: Mar 2003
Location: Bellevue, WA
Distribution: Arch w/ XFCE
Posts: 834

Original Poster
Rep: Reputation: 30
Sorry for not providing enough info ... It's a RH9 text-only server.

I'm gonna look at the rc.local stuff, I'll tell you how it goes, thanks!
 
Old 05-26-2004, 05:29 PM   #6
orange400
Member
 
Registered: Mar 2003
Location: Bellevue, WA
Distribution: Arch w/ XFCE
Posts: 834

Original Poster
Rep: Reputation: 30
Well I added /usr/src/pro*/proftpd -n -c /etc/proftpd.conf to the rc.local file and it loads the FTP server, but there's one problem ... it's a standalone server, so when it runs, it sticks there waiting for incoming connections. It doesn't load to the point where it asks me to login, so I can't do anything to the server if I do it this way.

There wouldn't be a way to autologin _then_ run proftpd, is there? I have to start the server as root (it switches to user anonymous before it actually inits), so it might be kinda ~ on security, but nobody's gonna break into my house and start breaking in or anything.

Another thing that would be really great - I use the switching "desktops" a lot (Alt-F1, Alt-F2, etc), so would there be any way to autologin on the Alt-F2 "desktop" to run top? I do this to monitor who's on the server.
 
Old 05-26-2004, 05:40 PM   #7
orange400
Member
 
Registered: Mar 2003
Location: Bellevue, WA
Distribution: Arch w/ XFCE
Posts: 834

Original Poster
Rep: Reputation: 30
Ack, it's really stuck. How can I pass an option to the kernel with grub to tell it to enter runlevel 1?

Nevermind, I figured out the runlevel stuff. Man it's so nice to be somewhat fluent in linux!! Couldn't have done it all without you guys.

So any ideas on making the server autoboot? Perhaps inetd? I'm not sure how to do that either, I just keep hearing about it.

Last edited by orange400; 05-26-2004 at 05:44 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Making/Compiling C++ programs via CLI J_K9 Programming 6 07-09-2005 12:20 PM
making your own programs for linux linuxmandrake Linux - Software 6 06-09-2005 07:30 AM
Programs in FluxBox take ages to start or don't start at all hubabuba Slackware 1 02-20-2005 09:21 AM
Making a script to turn on/off laptop power controll Nappa Slackware 3 11-29-2003 02:16 AM
making the monitor power off apberzerk Linux - Newbie 1 10-01-2003 03:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:49 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration