autostart folder and the kind under slackware and porteus

Technical issues/questions of an intermediate or advanced nature.
Post Reply
User avatar
francois
Contributor
Contributor
Posts: 4990
Joined: 28 Dec 2010, 14:25
Distribution: kde xfce porteus manjaro kubun
Location: Enfin l'été, le changement climatique attendu: le soleil.

autostart folder and the kind under slackware and porteus

Post#1 by francois » 10 Sep 2016, 14:49

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
Voltaire: Le mieux est l'ennemi du bien.

Bogomips
Full of knowledge
Full of knowledge
Posts: 2560
Joined: 25 Jun 2014, 15:21
Distribution: 3.2.2 Cinnamon & KDE5
Location: London

Re: autostart folder and the kind under slackware and porteu

Post#2 by Bogomips » 10 Sep 2016, 15:02

Code: Select all

echo cupsd START >> /etc/rc.d/rc.local
Perhaps?
Linux porteus 4.4.0-porteus #3 SMP PREEMPT Sat Jan 23 07:01:55 UTC 2016 i686 AMD Sempron(tm) 140 Processor AuthenticAMD GNU/Linux
NVIDIA Corporation C61 [GeForce 6150SE nForce 430] (rev a2) MemTotal: 901760 kB MemFree: 66752 kB

beny
Full of knowledge
Full of knowledge
Posts: 729
Joined: 02 Jan 2011, 11:33
Location: italy

Re: autostart folder and the kind under slackware and porteu

Post#3 by beny » 10 Sep 2016, 21:09

hi francois in the pkgtool: setup, services,rc.cups and you can choose it at boot,slackware system

User avatar
francois
Contributor
Contributor
Posts: 4990
Joined: 28 Dec 2010, 14:25
Distribution: kde xfce porteus manjaro kubun
Location: Enfin l'été, le changement climatique attendu: le soleil.

Re: autostart folder and the kind under slackware and porteu

Post#4 by francois » 11 Sep 2016, 16:30

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.
Voltaire: Le mieux est l'ennemi du bien.

User avatar
francois
Contributor
Contributor
Posts: 4990
Joined: 28 Dec 2010, 14:25
Distribution: kde xfce porteus manjaro kubun
Location: Enfin l'été, le changement climatique attendu: le soleil.

Re: autostart folder and the kind under slackware and porteu

Post#5 by francois » 17 Dec 2016, 19:09

Updated the link in first post. :)
Voltaire: Le mieux est l'ennemi du bien.

User avatar
brokenman
Site Admin
Site Admin
Posts: 5503
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v3.2rcX all desktops
Location: Brazil
Contact:

Re: autostart folder and the kind under slackware and porteu

Post#6 by brokenman » 17 Dec 2016, 19:15

Gives a 503 error now.
How do i become super user?
Wear your underpants on the outside and put on a cape.

User avatar
francois
Contributor
Contributor
Posts: 4990
Joined: 28 Dec 2010, 14:25
Distribution: kde xfce porteus manjaro kubun
Location: Enfin l'été, le changement climatique attendu: le soleil.

Re: autostart folder and the kind under slackware and porteu

Post#7 by francois » 17 Dec 2016, 20:49

Curious not for me. :no:
Voltaire: Le mieux est l'ennemi du bien.

Post Reply