Re: How to start a script running at boot time?
I know I can do something like: su - user -c script_to_run But I don't even know what's the best place to include that. Look inside file /etc/rc.conf line 54. You can create file /etc/rc.conf.local and insert your code there. Remember to add appropriate shell interpreter and apply permission to this newly created file. Regards, Anthony M. Rasat PT. Kalteng Pos Press Palangkaraya - Indonesia.- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
How to start a script running at boot time?
Hi, I have a script I would like to launch at boot time, as a non-root user, to remain running in the background. What is the best way to accomplish this? I looked through the rc* stuff, and it looks like overkill for what I need, plus my scripting isn't that strong either. I know I can do something like: su - user -c script_to_run But I don't even know what's the best place to include that. Any suggestions, or examples? -Thanks, Wayne ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: How to start a script running at boot time?
[EMAIL PROTECTED] writes: I have a script I would like to launch at boot time, as a non-root user, to remain running in the background. What is the best way to accomplish this? I looked through the rc* stuff, and it looks like overkill for what I need, plus my scripting isn't that strong either. Um, okay. The rc* stuff covers a lot of techniques, including simple scripts that just get run without worrying about parameters or so on, but that's your call... I know I can do something like: su - user -c script_to_run But I don't even know what's the best place to include that. Any suggestions, or examples? How about using @reboot in the user's crontab(5)? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: How to start a script running at boot time?
[EMAIL PROTECTED] wrote: Hi, I have a script I would like to launch at boot time, as a non-root user, to remain running in the background. What is the best way to accomplish this? I looked through the rc* stuff, and it looks like overkill for what I need, plus my scripting isn't that strong either. I know I can do something like: su - user -c script_to_run But I don't even know what's the best place to include that. Any suggestions, or examples? A sample script could be /etc/rc.d/sysctl, it contains a block sysctl_start() which is executed when you run # /etc/rc.d/sysctl start Using that as a sample you can insert you custom startup code. Cheers, Erik -- Ph: +34.666334818 web: www.locolomo.org S/MIME Certificate: www.daemonsecurity.com/ca/8D03551FFCE04F06.crt Subject ID: 9E:AA:18:E6:94:7A:91:44:0A:E4:DD:87:73:7F:4E:82:E7:08:9C:72 Fingerprint: 5B:D5:1E:3E:47:E7:EC:1C:4C:C8:3A:19:CC:AE:14:F5:DF:18:0F:B9 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]