unionfs-fuse with Systemd

[Unit]
Requires=network-online.target
After=network-online.target
 
[Service]
SyslogIdentifier=my-unionfs-fuse.service
Type=forking
ExecStartPre=/bin/mkdir -p /mnt/unionfs
ExecStart=/usr/bin/unionfs-fuse -o cow,allow_other,use_ino,uid=1000,gid=1000,max_files=32768 /mnt/local=RW:/mnt/remote=RO /mnt/unionfs
ExecStop=/bin/fusermount -u /mnt/unionfs
Restart=on-abort
 
[Install]
WantedBy=multi-user.target

See Alsos