twb | I haven't edited an upstart job in a long time | 02:08 |
---|---|---|
twb | I have one that says: | 02:09 |
twb | exec su supybot -s /bin/sh -c 'exec supybot --allow-default-owner /var/lib/supybot/supybot.conf' | 02:09 |
twb | If I want to run savelog /var/log/irc/messages.log first, can I put a second "exec" line in there? | 02:09 |
twb | Or... IIRC I do something like 'exec start \n <shell script> \n exec stop" | 02:10 |
AnrDaemon | twb: You can remove that abomination of exec first. | 02:10 |
twb | Aha "pre-start exec" | 02:10 |
AnrDaemon | And use setuid to change EUID of the job. | 02:10 |
twb | Note that this is an ancient host running upstart 0.6.5 and I'm not allowed to upgrade | 02:11 |
AnrDaemon | *sigh* | 02:11 |
twb | I don't see "setuid" mentioned in init(5) so I'm just gonna slap a "pre-start exec savelog" in there, and run away | 02:13 |
twb | OK, it's working good enough for government work | 02:23 |
twb | Thanks for your help & sorry to grief you with an ancient version :-( | 02:23 |
AnrDaemon | Hate those systems. >.< | 02:38 |
=== zz_Cidan is now known as Cidan | ||
=== Cidan is now known as zz_Cidan |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!