sysv-rc-conf or BootupManager

If you are looking for a specific 64-bit package and you can't find it in any of the 64-bit repos, please post a request for it here
Testuser
Samurai
Samurai
Posts: 137
Joined: 26 May 2021, 15:11
Distribution: Porteus-v5.0-64-LXDE

sysv-rc-conf or BootupManager

Post#1 by Testuser » 16 Oct 2021, 08:12

Hi Team,

How can we run Sysv-rc-conf or BootupManager, both are perl scripts.

They are used to manager runlevel services, to stop and start them mainly used in SysV init.

Tried pp perl program with no help. Says some files missing error. when tried.

Is there any other program for this.

Thanks.

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 3924
Joined: 20 Mar 2012, 03:42
Distribution: v5.0-64bit
Location: australia
Contact:

sysv-rc-conf or BootupManager

Post#2 by ncmprhnsbl » 16 Oct 2021, 22:29

not sure if this is compatible with slackware style init scripts ... which do use SysV, but in their own way...
generally, just reading the /etc/rc.d/rc.* scripts gives how to use.. usually: # chmod +x /etc/rc.d/rc.blah ; # /etc/rc.d/rc.blah start ; # /etc/rc.d/rc.blah stop (or "one shot", don't make executable and just: # sh /etc/rc.d/rc.blah start )
and and anything(most are) listed in /etc/rc.d/rc.services will start at boot if it's executable (chmod +x /etc/rc.d/rc.blah) or not if it's not (chmod -x /etc/rc.d/rc.blah)
in porteus-settings-centre gui, the firewall and bluetooth daemon are managed this way.
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

Testuser
Samurai
Samurai
Posts: 137
Joined: 26 May 2021, 15:11
Distribution: Porteus-v5.0-64-LXDE

sysv-rc-conf or BootupManager

Post#3 by Testuser » 17 Oct 2021, 19:25

Hi ncmprhnsbl,

Thanks much for the detailed reply.

Just one more doubt regarding this.

For the below entry in rc.services, didn't get the point in using "-x", will it be started if rc.sendmail is chmod +x ?


# Start the sendmail daemon:
[ -x /etc/rc.d/rc.sendmail ] && sh /etc/rc.d/rc.sendmail start &

Thanks

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 3924
Joined: 20 Mar 2012, 03:42
Distribution: v5.0-64bit
Location: australia
Contact:

sysv-rc-conf or BootupManager

Post#4 by ncmprhnsbl » 17 Oct 2021, 21:54

Testuser wrote:
17 Oct 2021, 19:25
For the below entry in rc.services, didn't get the point in using "-x", will it be started if rc.sendmail is chmod +x ?
you mean this bit?: [ -x /etc/rc.d/rc.sendmail ] ? it's bash shorthand for "test -x /etc/rc.d/rc.sendmail" , which means "test whether /etc/rc.d/rc.sendmail is set as executable" (which is what chmod +x does)
then the "&&" means, if the test returns true, execute it. (and if false, nothing)
if you do:

Code: Select all

ls -l /etc/rc.d/rc.sendmail
you'll see in the first column: -rw-r--r-- or -rwxr-xr-x : (r=readable w=writable x=executable .. first set: root, second set: allowed group, third: anybody )
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

Testuser
Samurai
Samurai
Posts: 137
Joined: 26 May 2021, 15:11
Distribution: Porteus-v5.0-64-LXDE

sysv-rc-conf or BootupManager

Post#5 by Testuser » 18 Oct 2021, 17:40

Hi ncmprhnsbl,

Thanks again for the detailed info.

Appreciate it. :hi:

Post Reply