LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-22-2006, 05:47 PM   #1
andrewthk
LQ Newbie
 
Registered: Jan 2006
Posts: 8

Rep: Reputation: Disabled
Startup script for debian


Hello,

All I need to do is type "fetchmail -d 600" to execute the fetchmail program. I just want it to start up automatically on system re-boot.
Is there are simple way of automating this without all the init.d script mumbo jumbo?

Thanks
 
Old 03-22-2006, 07:06 PM   #2
IBall
Senior Member
 
Registered: Nov 2003
Location: Perth, Western Australia
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088

Rep: Reputation: 62
As far as I know, just write a script called fetchmail in /etc/init.d:
Code:
#!/bin/sh
fetchmail -d 600
Then make a link in /etc/rcN.d (where N is the runlevel) like this:
Code:
ln -s /etc/init.d/fetchmail /etc/rc2.d/S99fetchmail
The "S99" part means to Start the script when entering this runlevel, and the 99 is a priority - lower numbers start first.

I hope this helps
--Ian
 
Old 03-23-2006, 12:48 AM   #3
andrewthk
LQ Newbie
 
Registered: Jan 2006
Posts: 8

Original Poster
Rep: Reputation: Disabled
cheers man...really appreciate it.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
'cannot stat' script in /etc/rc.d/, try to run script at startup quintan Linux - Software 1 11-21-2005 02:53 AM
How to call a script from a system startup script? jonatito Linux - Newbie 7 11-11-2005 09:40 PM
startup script waelaltaqi Linux - Software 3 10-01-2005 07:44 PM
startup/login script in debian lixy Linux - Newbie 1 03-25-2005 10:49 AM
startup script c0c0deuz Linux - Newbie 3 03-29-2003 03:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:57 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