On Wed, Jul 31, 2013 at 4:03 PM, lux-integ <lux-in...@btconnect.com> wrote:
>  #--------------
>  IF mountpoint exists
> /bin/echo "....obladee"
>  /bin/mount /dev/something  $mountpoint
>  ELSE
> /bin/echo "....obladaa"
>  /bin/mount /dev/something somewherelse
>  ENDiF
>  #--------------
>
> does this   file need to be stripped of the /bin/echo lines?
> in otherwords will systemd print the "obladee" or  "obladaa.." lines during
> execution or do they need to be removed before ExecStart works?

By default, anything you print to stdout (e.g. using echo) will end up
in the journal and not on the console. If you want to override that
you can set StandardOutput=journal+console (see
http://0pointer.de/public/systemd-man/systemd.exec.html). Though, that
is typically not what you want.

The suggestions from Michal and Colin seem like the best option for
you (rather than a shell script).

-t
_______________________________________________
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to