explain why we wrote the systemd service file

This commit is contained in:
Jonathan Dahan 2020-01-03 15:12:33 -05:00
parent 7af34f6b4e
commit 6e3aed336c
1 changed files with 3 additions and 0 deletions

View File

@ -5,6 +5,9 @@ After=network.target
[Service]
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'
Restart=on-failure