How to run a program as root on startup in debian wheezy?
I have a small program written in C for checking disk information and i would like it to run on startup everytime the machine boots.
My program requires sudo to run so im guessing i need to make it start with root privileges. |
for the system to do it automatically, i would put it in /etc/rc.local.
for the user to do it once logged in you can put it in ~/.bash_profile. some newer distros support a @reboot directive in the users crontab. |
Quote:
|
All times are GMT -5. The time now is 08:40 PM. |