Steffen Barszus <steffenbpunkt-gM/[email protected]>
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

-- 
upstart-devel mailing list
[email protected]
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/upstart-devel

Reply via email to