Problem with upstart script - recognition of PID to track

Enrico Scholz enrico.scholz at sigma-chemnitz.de
Wed Apr 7 09:56:03 BST 2010


Steffen Barszus <steffenbpunkt-gM/Ye1E23mwN+BqQ9rBEUg at public.gmane.org>
writes:

> In order to get the quoting right i use eval in the script section.
> Like that the daemon start - but upstart is refering to wrong pid.
>
> Is there any way i can fill this variables in pre-start and hand over
> to the start section ? Is there any other way to tell upstart what the
> correct pid is ? The pid option doesn't seem to exist (anymore? I'm
> using karmic)
> ...
> export LANG LC_ALL
> eval /usr/bin/vdr -v $VIDEO_DIR -c $CFG_DIR -L $PLUGIN_DIR -r $REC_CMD
> -s $VDRSHUTDOWN -E $EPG_FILE -u $USER -g /tmp --port $SVDRP_PORT
> $OPTIONS $PLUGINS $REDIRECT &>> /tmp/test-vdr.log

I would express this like

| eval set -- /usr/bin/vdr ...
| exec "$@"



Enrico



More information about the upstart-devel mailing list