How to run pystromo-mon or pystromo-remap as a service/daemon?

Asked by Byron Gibson

Hi Raum, I've got both monitor and remap working from the command line:

kurtosis@kurtosis-desktop:/opt/pystromo$ ./pystromo-mon.py -a -c config/monitor.conf
kurtosis@kurtosis-desktop:/opt/pystromo$ ./pystromo-remap.py -m default.map

I don't need to change mappings for every application, and have configured monitor.conf to always use the same /opt/pystromo/default.map mapping.

Is it possible to run either of those commands as a linux daemon that automatically starts when the computer does and applies the remapping to all users?

Question information

Language:
English Edit question
Status:
Solved
For:
Pystromo Edit question
Assignee:
No assignee Edit question
Solved by:
Raumkraut
Solved:
Last query:
Last reply:
Revision history for this message
Best Raumkraut (raumkraut) said :
#1

I personally used a bash script (containing only the pystromo-mon execution line) in the KDE autostart-on-login directory. Back when I used KDE (and Pystromo didn't need to be root).

But to have it running globally, for any system user (should there be more than one!), the easiest way is probably to add the desired pystromo command line to the /etc/rc.local shell script.

Or if you're feeling frisky, and want to go a more thorough and complex route, then you could look into writing an init script to do stop/start/restart of Pystromo. http://www.debian-administration.org/article/Making_scripts_run_at_boot_time_with_Debian is a quick guide on the subject for Debian (and hence Ubuntu, etc.). Many of the comments on that page are quite informative, as well.

Revision history for this message
Byron Gibson (byrongibson) said :
#2

Thanks Raumkraut, that solved my question.