c-cube / frog-utils

[frozen] Scheduling and running jobs on a shared computer, then analyse their output
BSD 2-Clause "Simplified" License
5 stars 0 forks source link

Absolute path in systemd file #36

Open Gbury opened 7 years ago

Gbury commented 7 years ago

As I'm learning, it seems systemd requires an absolute path in the ExecStart command of a service file, which means the current file in data cannot be directly used.

c-cube commented 7 years ago

See option WorkingDirectory -- Simon

Gbury commented 7 years ago

I'm not sure I understand what you mean. For clarification, as far as I understand:

The only way I see how to use the WorkingDirectory option to solve the problem would be to somehow use opam config var bin, but then again I'm not sure it would help with the absolute path problem.

As a side note, the small commentary about persistent storage using the WorkingDirectory option wasn't very enlightening for me, ^^

c-cube commented 7 years ago

Or use a script in ~/bin that will eval opam config env to find the proper frogutils -- Simon

c-cube commented 7 years ago

Ah. Just use one of the switches? It won't change the behavior of frogutils... -- Simon