Page 1 of 1

sysv-rc-conf or BootupManager

Posted: 16 Oct 2021, 08:12
by Testuser
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.

sysv-rc-conf or BootupManager

Posted: 16 Oct 2021, 22:29
by ncmprhnsbl
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.

sysv-rc-conf or BootupManager

Posted: 17 Oct 2021, 19:25
by Testuser
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

sysv-rc-conf or BootupManager

Posted: 17 Oct 2021, 21:54
by ncmprhnsbl
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 )

sysv-rc-conf or BootupManager

Posted: 18 Oct 2021, 17:40
by Testuser
Hi ncmprhnsbl,

Thanks again for the detailed info.

Appreciate it. :hi: