[systemd-devel] macros in systemd unit files question
lux-integ at btconnect.com
Wed Jul 31 10:59:18 PDT 2013
On Wednesday 31 July 2013 14:22:35 Michal Vyskocil wrote:
> You can split the logic into two mount units with opposite Condition
> Description=mount mountpoint
> Description=mount somewhereelse
many thanks for this
now suppose my original file had more than mount in it say it was
IF mountpoint exists
/bin/mount /dev/something $mountpoint
/bin/cp something $mountpoint/somedir
/bin/mount /dev/something somewherelse
/bin/cp somethingelse somewherelse/someotherdir/
How would I do this ?
a) can I add other non-mount commands to mount units?
b) can I call mount units in other types of units in say service units
(i.e. with 'ExecStart= ) and if so how so ?
thanks in advance
More information about the systemd-devel