13 Commits

Author SHA1 Message Date
Athanasius
6e07d1fd64 start-eddn-service: That's bounceR & enforce it
* Bouncer, not bounce.
* Check the provided eddn service is a valid one.
2021-07-09 08:59:50 +00:00
Athanasius
d8ac2bc6b2 start-eddn-service: User $USER instead of hard-coded value 2021-07-09 08:44:27 +00:00
Athanasius
ffc07e92cf start-eddn-service: Stricter checking for "is process already running?" 2021-07-09 08:41:57 +00:00
Athanasius
2ba0865d46 start-eddn-service: Add 'bounce' & ps only on PID
* The ps options for filtering are logical OR, not AND, and there seems
  to be no way to have them be ANDed instead.
2021-07-09 08:19:18 +00:00
Athanasius
f968919029 systemd/start-eddn-service: Correct "is it actually running?" ps checks
Lack of '-p' meant it was just looking for ANY 'python' process, not on
that PID.
2021-07-08 11:49:14 +00:00
Athanasius
fe245d598b systemd/start-eddn-service: Fix redirect of errors to stderr 2021-07-07 14:18:23 +00:00
Athanasius
e3053dc0b6 systemd: Updates for it to work with current paradigm 2021-07-06 13:29:29 +00:00
Athanasius
e424606504 systemd/start-eddn-service: errors to stderr, make logs/ and pre-check pid file 2021-07-06 13:06:45 +00:00
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