Freebsd rc troubleshooting

From wikinotes
Revision as of 18:35, 22 October 2022 by Will (talk | contribs) (Created page with "= Force Starting Broken InitScripts = <blockquote> Sometimes, you don't have time to troubleshoot why a particular command is not working. You can get around this in two ways: ''' rc.local method ''' <source lang="bash"> # /etc/rc.local /usr/local/etc/rc.d/${MY_SERVICE} start # bypass rc.d init and run </source> ''' crontab method ''' <source lang="bash"> su crontab -u </source> <source lang="bash"> # crontab @reboot /usr/local/etc/rc.d/<my_service> start </source>...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Force Starting Broken InitScripts

Sometimes, you don't have time to troubleshoot why a particular command is not working. You can get around this in two ways:

rc.local method

# /etc/rc.local
/usr/local/etc/rc.d/${MY_SERVICE} start # bypass rc.d init and run

crontab method

su
crontab -u
# crontab

@reboot  /usr/local/etc/rc.d/<my_service> start
https://forums.freebsd.org/threads/31249/