LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 07-10-2008, 04:37 AM   #1
glore2002
Member
 
Registered: Mar 2007
Location: Buenos Aires, Argentina.
Distribution: Lubuntu 17.10 x64
Posts: 510

Rep: Reputation: 33
Starting programs at boot time.


Hi!

What is the best way to tell Slackware to start programs at boot time? For instance, I would like Kwifi to start running when Slackware starts.

Thanks,
Glore2002.-
 
Old 07-10-2008, 05:32 AM   #2
ghostdancer
Member
 
Registered: Apr 2002
Distribution: Slackware
Posts: 266

Rep: Reputation: 30
I would use a simple SysV script (like the one below), and add path to start the program, save it into /etc/rc.d/init.d directory. Name it as anyway you like (maybe as kwifi for your case). Then make the symbolic link from rc3.d and rc4.d to kwifi.

Code:
#!/bin/sh
    
case "$1" in
'start')
# Add the program to start after the line here

;;
'stop')
# Add the method to kill the task or shut it down

;;
*)
    
echo "Usage $0 start|stop"
esac
Or, you can simply add the command into /etc/rc.local (the traditional way).
 
Old 07-10-2008, 05:46 AM   #3
Vit77
Member
 
Registered: Jun 2008
Location: Toronto, Canada
Distribution: SuSE, RHEL, Mageia
Posts: 132

Rep: Reputation: 17
As far as I understand, this soft is for KDE. So, you can just put a link (or some starting script) into ~/.kde/Autostart directory.
 
Old 07-10-2008, 05:52 AM   #4
ghostdancer
Member
 
Registered: Apr 2002
Distribution: Slackware
Posts: 266

Rep: Reputation: 30
Oh ya... That should be more correct.
 
Old 07-10-2008, 09:44 AM   #5
glore2002
Member
 
Registered: Mar 2007
Location: Buenos Aires, Argentina.
Distribution: Lubuntu 17.10 x64
Posts: 510

Original Poster
Rep: Reputation: 33
Thank you!

Thanks for your help!
By putting a link, Do you mean writing Kwifi in ~/.kde/Autostart?

When I get home, I will try and let you know if it worked.

Thanks again,
Glore2002.-
 
Old 07-10-2008, 12:12 PM   #6
bgeddy
Senior Member
 
Registered: Sep 2006
Location: Liverpool - England
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Posts: 1,810

Rep: Reputation: 232Reputation: 232Reputation: 232
From the command line when logged in as your user..
Code:
ls -s $(which kwifimanager) ~/.kde/Autostart/
Should do it.
 
Old 07-10-2008, 07:43 PM   #7
glore2002
Member
 
Registered: Mar 2007
Location: Buenos Aires, Argentina.
Distribution: Lubuntu 17.10 x64
Posts: 510

Original Poster
Rep: Reputation: 33
Quote:
Originally Posted by bgeddy View Post
From the command line when logged in as your user..
Code:
ls -s $(which kwifimanager) ~/.kde/Autostart/
Should do it.
Thanks guys! When I write the code above, kwifi doesn't start at boot time. Am I doing something wrong?
What should I do to create a link in that folder?

Thanks again,
Glore2002.-
 
Old 07-10-2008, 08:01 PM   #8
bgeddy
Senior Member
 
Registered: Sep 2006
Location: Liverpool - England
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Posts: 1,810

Rep: Reputation: 232Reputation: 232Reputation: 232
Sorry - I must have mistyped that line - it should be :

Code:
ln -s $(which kwifimanager) ~/.kde/Autostart/
this should create a link in ~/.kde/Autostart pointing to kwifi manager.

This will start kwifi manager when kde is started.

Apologies again for the mistype - will have to get new glasses !
 
Old 07-10-2008, 08:18 PM   #9
glore2002
Member
 
Registered: Mar 2007
Location: Buenos Aires, Argentina.
Distribution: Lubuntu 17.10 x64
Posts: 510

Original Poster
Rep: Reputation: 33
Thumbs up Thank you!

It works ok. Thank you bgeddy!

Glore2002.-
 
  


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
Fedora Core 4 - how do i stop unnecessary programs from starting up at boot time? nickleus Fedora 5 01-24-2006 09:18 AM
Automatic log in and starting programs at boot Spy47 Linux - Newbie 3 11-18-2004 05:17 PM
Automatically starting programs for individual users at boot johnleemk Linux - General 1 09-13-2004 05:24 AM
Starting programs on logon/syncing time/ PATH arkamir Linux - Newbie 3 01-28-2004 05:47 PM
Starting programs at boot (RedHat specific?) damion Linux - General 1 12-18-2001 06:33 AM

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

All times are GMT -5. The time now is 09:43 PM.

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