5 Commits

Author SHA1 Message Date
Athanasius
0c8a01fbbd systemd/start-eddn-service: Also check for existing process for not-source 2021-07-06 12:45:38 +00:00
Athanasius
b1ceccd850 systemd/start-eddn-service: Check if process still exists 2021-07-06 11:52:43 +00:00
Athanasius
0e3ef098ab systemd/start-eddn-service: Now replacing scripts/run-from-source.sh
* Removed scripts/run-from-source.sh as it's now redundant.
* Added `--background` optional argument, only for when using
  `--from-source` to start-eddn-service.  The script will leave the
  service in the foreground, no output redirection, without it.

  It tells you the PID of the process when it's backgrounded, as well as
  placing it in the appropriate .pid file.
2021-07-06 11:17:52 +00:00
Athanasius
e049e2971b systemd/start-eddn-service: Can now --from-source
* Also now stores PID in per-service file in configured logs directory.
* Swapped the environment arg and service so it's, e.g. "live gateway"
  now.
* New optional third arg `--from-source` to... run from source, not
  installed files.  The script *will* exit and redirect output, but
  record the PID and tell you it.

  New SRC_DIR in the config files to know where to run from.
2021-07-06 10:44:44 +00:00
Athanasius
478bf4060b Move systemd scripts/files out of contrib into root 2021-07-06 10:03:31 +00:00