Page 1 of 1

autostart folder and the kind under slackware and porteus

Posted: 10 Sep 2016, 14:49
by francois
When one wants a command or a script to be included in the bootup process, there seems to be different ways of meeting that goal:
~/.bashrc
/root/.config/autostart-scripts/ #kde desktop

What are the other strategies?

As an example, personally I would like to start the CUPS server with the cupsd command.

Notes:
Services and runlevels:
https://www.linux.com/news/introduction ... cd-scripts
https://www.linux.com/news/introduction ... cd-scripts

How run levels start are configured in /etc/inittab:
example for openrc:

Code: Select all

l0:0:wait:/usr/bin/openrc shutdown
l0s:0:wait:/usr/bin/halt -dhip
l1:S1:wait:/usr/bin/openrc single
l2:2:wait:/usr/bin/openrc nonetwork
l3:3:wait:/usr/bin/openrc default
l4:4:wait:/usr/bin/openrc default
l5:5:wait:/usr/bin/openrc default
l6:6:wait:/usr/bin/openrc reboot
l6r:6:wait:/usr/bin/reboot -d
#z6:6:respawn:/usr/bin/sulogin

Re: autostart folder and the kind under slackware and porteu

Posted: 10 Sep 2016, 15:02
by Bogomips

Code: Select all

echo cupsd START >> /etc/rc.d/rc.local
Perhaps?

Re: autostart folder and the kind under slackware and porteu

Posted: 10 Sep 2016, 21:09
by beny
hi francois in the pkgtool: setup, services,rc.cups and you can choose it at boot,slackware system

Re: autostart folder and the kind under slackware and porteu

Posted: 11 Sep 2016, 16:30
by francois
Beny, its good to see you on the forum. :D

Finally, I was happy to dig with these methods. And both of you gave me interesting insights in the linux system: /etc/rc.d. rc.1. rc.2 ... and pkgtools which are available in usm.

But also tied to pkgtools, I got to http://www.porteus.org/component/conten ... udies.html

It was about time that I read that FAQ must read for porteus understanding.

I am working on the CUPS or print module, and the solution is here:
http://alien.slackbook.org/dokuwiki/dok ... kware:cups

Code: Select all

chmod +x /etc/rc.d/rc.cups
This will get cupsd command initiated at bootup for the cups package.

So no need for autostart strategies, though it will be of some use later. :)

Thanks bogomips and beny.

Re: autostart folder and the kind under slackware and porteu

Posted: 17 Dec 2016, 19:09
by francois
Updated the link in first post. :)

Re: autostart folder and the kind under slackware and porteu

Posted: 17 Dec 2016, 19:15
by brokenman
Gives a 503 error now.

Re: autostart folder and the kind under slackware and porteu

Posted: 17 Dec 2016, 20:49
by francois
Curious not for me. :no: