1
I find systemd very exciting, but how would I use it to write a script to mount an s3ql filesystem? For example, the s3ql developer provides an upstart config that does the job.
Specifically, on startup mount.s3ql must be run (as the desired user as this is a FUSE filesystem), and on shutdown umount.s3ql must be run. In addition, what if we want to fsck.s3ql the filesystem before mounting, or run a Unison synchronization step after startup and before shutdown (all modifications I have made on my own personal upstart).
At first glance I would think I would want to setup a mount unit on systemd, but it appears that the service unit actually fits better with pre and post exec startup commands. (All the man pages are available here.)
And what .target do I depend on to encode the dependency on a network connection?
1
mount.s3ql
supports-o options
(and always has). Recent versions also come with systemd notification support, soType=forking
is no longer correct. – Nikratio – 2016-03-16T16:36:46.087