Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • The /var/run directory is ephemeral, i.e. it is dropped on reboot of the server. If a sub-directory such as js7 is used then it has to be created by the service file. 
  • PID FileDirectoryFile
    • PIDFile=/var/run/js7/controller.pid
    • ExecStartPre=+/bin/mkdir -p /var/run/js7
    • ExecStartPre=+/bin/chown js:js /var/run/js7
  • The + preceeding the commends commands indicates that they will be executed by the root account.
  • The commands create the js7 sub-directory and hand-over ownership to the js account.

...