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
- ncmprhnsbl
- DEV Team
- Posts: 3938
- Joined: 20 Mar 2012, 03:42
- Distribution: v5.0-64bit
- Location: australia
- Contact:
sysv-rc-conf or BootupManager
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.
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
sysv-rc-conf or BootupManager
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
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
- ncmprhnsbl
- DEV Team
- Posts: 3938
- Joined: 20 Mar 2012, 03:42
- Distribution: v5.0-64bit
- Location: australia
- Contact:
sysv-rc-conf or BootupManager
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
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44
sysv-rc-conf or BootupManager
Hi ncmprhnsbl,
Thanks again for the detailed info.
Appreciate it.
Thanks again for the detailed info.
Appreciate it.