How хан I run an Upstart session job automatically?

I want xflux to run automatically схвати в daemon when logging into my 15.04 desktop account. It would seem that Upstart should be the way to go. I am able to run my Upstart job manually, but I have failed to get it to run automatically upon login. I need to keep the .conf file помещение to my account, so I want to run it эксперт an Upstart session job. I created ~/.config/upstart/xflux.conf like this:

start on runlevel [2345]

stop on runlevel [016]

exec /home/me/bin/xflux -l 0 -g 0 -nofork

I хан run this умер путь "start xflux" и "stop xflux", but it won't run automatically on login. Googling did not help.

I was looking at the available events for session jobs, but not sure if that's my problem really. I kind of thought гd see upstart-event-bridge running, but that does not seem to be the вступил в брак.

It would seem to defeat the purpose to add "start xflux" to my .profile or some other init file.

0
задан 3 December 2015 в 01:01

1 ответ

После нахождения списка событий обычного пользователя в Новомодная Поваренная книга , я изменил .conf файл для запуска на запуске рабочий стол и остановке на настольном конце, который, кажется, работает. Кроме того, я добавил, что пятисекундная задержка, чтобы не сбрасываться к старому дисплею указывает позже во время запуска:

start on desktop-start

stop on desktop-end

script
  sleep 5
  exec /home/me/bin/xflux -l 0 -g 0 -nofork
end script
2
ответ дан 30 September 2019 в 02:13

Другие вопросы по тегам:

Похожие вопросы: