I made a small utility application in
C that monitors
udev for power events and adjusts my laptop backlight brightness automatically. (I'm running Ubuntu 15.04)
I ran the following commands and it runs on startup just fine.
$ sudo cp powermonitor /etc/init.d/powermonitor $ sudo chmod +x /etc/init.d/powermonitor $ sudo update-rc.d powermonitor defaults
However, after monitoring its CPU usage in
htop for a while, I noticed that it is now gone. The program takes no command line arguments, though it seems Linux is trying to start it with:
Is there something I should be doing to ensure that the process keeps running?
EDIT: To clarify,
powermonitor is an executable and not a script.