explain why we wrote the systemd service file
This commit is contained in:
parent
7af34f6b4e
commit
6e3aed336c
|
@ -5,6 +5,9 @@ After=network.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=simple
|
||||||
|
# %s : run in the user's shell because they might have a custom PATH
|
||||||
|
# -l : invoke a login shell to make sure to source .profile, .zprofile, .bash_profile, ...
|
||||||
|
# -c : invoke a shell because we'd have to hardcode a path using ExecStart
|
||||||
ExecStart=%s -l -c 'oasis --host localhost --port 4515 --no-open'
|
ExecStart=%s -l -c 'oasis --host localhost --port 4515 --no-open'
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue