/srv/irclogs.ubuntu.com/2014/01/04/#upstart.txt

pikaren~/.config/upstart $ ls08:27
pikarenrescuetime.conf08:27
pikaren~/.config/upstart $ start rescuetime08:27
pikarenstart: Unknown job: rescuetime08:27
pikarensystem: linux mint  upstart version: 1.1008:28
pikarenand i've changed my upstart.conf to http://bazaar.launchpad.net/~upstart-devel/upstart/trunk/view/1301/dbus/Upstart.conf08:29
pikarenplease help?08:29
jribhello!  If I would like to have a job that is managed by an unprivileged user, what is the best way to do this?  Should I create a user job in ~/.config/upstart?  I need the job to run automatically at boot14:23
jribi guess http://upstart.ubuntu.com/cookbook/#non-graphical-sessions-ubuntu-specific is the way? 14:36
jribit seems somewhat hacky/like it's going to change.  I'm thinking of just using setuid/setgid and setting up sudoers so the user can control the one job.  Thoughts?14:36
jribplus it would make it clunky to control the job14:37
xnoxpikaren, well you are now gone....19:41
xnoxjrib: if it's a system job, make it a system job in /etc/init/ and with correct start on it will start on boot.19:41
xnoxjrib: if you want to allow some users to control it (e.g. start/stop/restart/reload etc.) i believe you can apply policykit rules to allow those actions. Or e.g. create simple setuid scripts around initctl to do that + e.g. change permissions on the job file to allow a group of users to write/modify it.19:43
xnoxjrib: typically setuid/setguid/export HOME= are sufficent to make a "system" job to run unprivileged.19:43
bwlanghi... i'm trying to get an upstart script to respond to a dvd insertion...22:01
bwlangi can see the udev event using udevadm monitor --property --udev22:01
bwlangbut i don't think my script /etc/init/dvd-inserted.conf is being run.22:02
bwlangwhere can i find the logs about this or increase the logs.22:02
bwlang?22:02
bwlangi start with start on block-device-added; task; script ; echo 'here' > /tmp/dvd_inserted; end script (s/;/\n/)22:04
=== hidgw is now known as ElimGarak
=== ElimGarak is now known as hidgw

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!