From 6e3aed336cedc318b8fdc7212b52e1ea3d66fe83 Mon Sep 17 00:00:00 2001 From: Jonathan Dahan Date: Fri, 3 Jan 2020 15:12:33 -0500 Subject: [PATCH] explain why we wrote the systemd service file --- contrib/oasis.service | 3 +++ 1 file changed, 3 insertions(+) diff --git a/contrib/oasis.service b/contrib/oasis.service index bcc5ae1..8888ab3 100644 --- a/contrib/oasis.service +++ b/contrib/oasis.service @@ -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