LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-07-2004, 08:59 PM   #1
moonloader
Member
 
Registered: Nov 2003
Location: linuxquestions.org
Distribution: Linux and BSD
Posts: 229

Rep: Reputation: 30
program start at boot


hi!
I would like to start a few programs at boot,but I couldn't manage.I wrote to /etc/rc.d/rc.local exp:/usr/bin/snort and /usr/sbin/psad
it doesn't work.I appreciate any help.thanks
 
Old 03-07-2004, 09:09 PM   #2
Slacker_Rex
Member
 
Registered: Aug 2003
Location: Arkansas
Distribution: Slackware 12.2
Posts: 104

Rep: Reputation: 15
I am not sure what you mean specificially when you say you wrote to /etc/rc.d/rc.local but that should do the trick. My rc.local starts up junkbuster for me, that is about the only thing that I start up automatically at boot time. It is pasted below for your reference. If you have already put your command in here, you may want to make sure that you typed the commands correctly.

#!/bin/sh
#
# /etc/rc.d/rc.local: Local system initialization script.
#
# Put any local setup commands in here:

echo "Loading Internet JunkBuster Proxy..."
/ijb20/./junkbuster /ijb20/junkbstr.ini &
 
Old 03-08-2004, 05:15 AM   #3
moonloader
Member
 
Registered: Nov 2003
Location: linuxquestions.org
Distribution: Linux and BSD
Posts: 229

Original Poster
Rep: Reputation: 30
I want snort and psad start automatically
 
Old 03-08-2004, 06:49 AM   #4
Dravis
LQ Newbie
 
Registered: Aug 2003
Distribution: Slackware 9.1
Posts: 15

Rep: Reputation: 0
As root, type in:
echo /usr/bin/snort >> /ext/rc.d/rc.local
echo /usr/bin/psad >> /ext/rc.d/rc.local

Those programs will now start at boot.
 
Old 03-08-2004, 07:33 AM   #5
moonloader
Member
 
Registered: Nov 2003
Location: linuxquestions.org
Distribution: Linux and BSD
Posts: 229

Original Poster
Rep: Reputation: 30
hi!
by these commands as root in konsole writes excatly>/usr/sbin/psad and /usr/bin/snort
I wrote this manually in webmin to rc.local,but did not work

in konsole as root commanding like that success!
echo /usr/bin/snort >> /etc/rc.d/rc.local
echo /usr/sbin/psad >> /etc/rc.d/rc.local


strange,why it doesn't work by adding manually to rc.local?
/usr/sbin/psad
/usr/bin/snort


I get error from snort by writing no such a file no directory,but I get same error when I command in konsole as root snort "No such file or directory" this is another matter!


psad works nicely!

thank you very much Dravis

 
  


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
Adding a program to start at boot ... tomazN Debian 3 10-15-2005 05:52 PM
How do I start a program on boot ? overproof Mandriva 4 04-22-2005 08:13 AM
How do I start a program automatically when I boot up? bad_andy Mandriva 2 11-27-2004 09:15 PM
Start a program at boot time cppkid Programming 3 08-31-2004 10:33 AM
Start program at boot as non-root ImpactDNI Linux - Newbie 4 07-18-2004 01:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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