2

On a system running Debian 8 with Systemd, I am trying to run a service immediately after /var is mounted. The custom service copies some essential files to /var, and it must be run before any other services that depend on /var. How can I configure systemd to run my custom service after /var is mounted but before other services?

EDIT: As a side note, / is mounted read-only, and I am trying to mount /var as a tmpfs. Then, I copy some files to /var during boot-up. Prior to systemd, this was a simple change to /etc/init.d/mountkernfs.sh... now it seems to be a systemd nightmare. :(

  • Well, you can always generalize the above, it is not that difficult. – MariusMatutiae Oct 21 '15 at 18:02
  • @MariusMatutiae - ??? – BMiner Oct 22 '15 at 15:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.