var-volatile-srv.service 416 B

12345678910111213141516171819
  1. [Unit]
  2. Description=Bind mount volatile /srv
  3. DefaultDependencies=false
  4. Before=local-fs.target
  5. RequiresMountsFor=/var/volatile
  6. ConditionPathIsReadWrite=/var/volatile
  7. ConditionPathExists=/srv
  8. ConditionPathIsReadWrite=!/srv
  9. [Service]
  10. Type=oneshot
  11. RemainAfterExit=Yes
  12. StandardOutput=syslog
  13. TimeoutSec=0
  14. ExecStart=/sbin/mount-copybind /var/volatile/srv /srv
  15. ExecStop=/bin/umount /srv
  16. [Install]
  17. WantedBy=local-fs.target