LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 07-27-2009, 11:42 AM   #1
alpha_lt
Member
 
Registered: Jul 2009
Location: Denmark
Distribution: Debian
Posts: 92

Rep: Reputation: 15
Autostart after installing from sources


Hello all,

I compiled and installed source. It was nothing in /etc/init.d. Is it true that everytime you must write startup script by yourself or it depends of software you are compiling ? Maybe every source code has the ability to generare run script but I don't know about it ?
Thanks in advance.
 
Old 07-27-2009, 11:47 AM   #2
amani
Senior Member
 
Registered: Jul 2006
Location: Kolkata, India
Distribution: Debian 64-bit GNU/Linux, Kubuntu64, Fedora QA, Slackware,
Posts: 2,766

Rep: Reputation: Disabled
depends on the application.

Which application?

Desktop environs can start applications automatically in runlevel 4, 5.


'services' utilities are also available
 
Old 07-27-2009, 11:58 AM   #3
alpha_lt
Member
 
Registered: Jul 2009
Location: Denmark
Distribution: Debian
Posts: 92

Original Poster
Rep: Reputation: 15
It's proftpd. I compiled it from source because I wanted to add mod-sftp to it. It does not generate any autostart.
Services command is not available. I use Ubuntu. I'll try to find it.
Can you tell me more about runlevels. I mean I know what it is, but how to add it to startup ? just copy proftpd to r?.d and that's all ?
 
Old 07-27-2009, 12:21 PM   #4
amani
Senior Member
 
Registered: Jul 2006
Location: Kolkata, India
Distribution: Debian 64-bit GNU/Linux, Kubuntu64, Fedora QA, Slackware,
Posts: 2,766

Rep: Reputation: Disabled
Ubuntu...
http://upstart.ubuntu.com/getting-started.html

or
sysvconfig
 
Old 07-27-2009, 02:46 PM   #5
alpha_lt
Member
 
Registered: Jul 2009
Location: Denmark
Distribution: Debian
Posts: 92

Original Poster
Rep: Reputation: 15
I'm sorry if my questions is too noob, but isn't sysvconfig the same as update-rc.d someservice defaults ?
Here is what I did:
Just created start,stop,restart script for proftpd.sh and called it proftpd.sh. Then copied it to /etc/init.d and enter in command line:

sudo update-rc.d ./proftpd.sh defaults


At least everything is working, but I don't know if everything was ok in my actions.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing Kernel sources fishkake Linux - Kernel 2 12-05-2006 05:36 PM
Installing Gnome 2.6 from sources. simanyay Linux - Software 1 04-13-2004 02:58 PM
Installing gtkmm from the sources lord_ruyk Linux - Software 0 12-11-2003 05:01 PM
Installing RH9 Sources christophe_ca Linux - Newbie 4 06-22-2003 07:47 AM
Installing Kernel Sources... Solean Slackware 4 04-26-2003 04:16 PM


All times are GMT -5. The time now is 05:51 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration