[opensuse] Starting things as root at boot time
I've recently installed the Squid web proxy cache. To start the daemon, I have to su and type /usr/sbin/squid. Is there a simple way of doing this automagically whenever I start my machine? -- Bob openSUSE 10.2 x86_64, Kernel 2.6.18.8-0.1, KDE 3.5.6 r31.4 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Tue 01 May 2007 20:03, Bob Williams wrote:
I've recently installed the Squid web proxy cache. To start the daemon, I have to su and type /usr/sbin/squid. Is there a simple way of doing this automagically whenever I start my machine?
- guess you could put it in: /etc/init.d/boot.local best wishes -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Tuesday 2007-05-01 at 20:06 -0000, riccardo35@gmail.com wrote:
daemon, I have to su and type /usr/sbin/squid. Is there a simple way of doing this automagically whenever I start my machine?
- guess you could put it in:
/etc/init.d/boot.local
That will fail, the network is not up. Just tell yast to start that service. - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFGOGsatTMYHG2NR9URAk63AJ98TPBlj0ahbq4vdIWbe4jNfKO0+QCeNlkc 8D1Pxj9bZTyBIQ3qMlzjAUE= =SaZX -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Bob Williams wrote:
I've recently installed the Squid web proxy cache. To start the daemon, I have to su and type /usr/sbin/squid. Is there a simple way of doing this automagically whenever I start my machine?
All such services are normally started by the init system, not by manual intervention. BTW your squid proxy package was from the suse install CD right? Just go into yast->system->runlevel manager and tick off the "start at boot" box next to squid. Or, to do it from the command line, you can just type "chkconfig -a squid" Joe -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Bob Williams wrote:
I've recently installed the Squid web proxy cache. To start the daemon, I have to su and type /usr/sbin/squid. Is there a simple way of doing this automagically whenever I start my machine?
Yast -> System -- Run Level Services --> look for squid in table --> enable..... -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iD8DBQFGN6gPasN0sSnLmgIRArmAAJ9MrxyY5Fbz0XqKak7oFU7rOPvC6QCfeJHR utWVJcTrbJRBZfGNJpxccak= =b9cD -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Bob Williams wrote:
I've recently installed the Squid web proxy cache. To start the daemon, I have to su and type /usr/sbin/squid. Is there a simple way of doing this automagically whenever I start my machine?
First look at the files in /etc/init.d Then look at the files in /etc/init.d/boot.d /etc/init.d/rcS.d (Single User/Maintenance mode -- root filesystem only) /etc/init.d/rc1.d (Sinlge User with all filesystems mounted) /etc/init.d/rc2.d (Multi-user) /etc/init.d/rc3.d (Multiuser with network services) /etc/init.d/rc4.d (unused in most Distros including Suse) /etc/init.d/rc5.d (Multiuser, Networked, with GUI /etc/init.d/rc6.d (Reboot) And observe the pattern See also: man init -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (6)
-
Aaron Kulkis
-
Bob Williams
-
Carlos E. R.
-
G T Smith
-
riccardo35@gmail.com
-
Sloan