From b14be4974f8a3307b4bb0c51cdece2e424181298 Mon Sep 17 00:00:00 2001 From: Srdjan Grubor Date: Fri, 12 Feb 2016 13:22:33 -0600 Subject: [PATCH] Added SystemD example service file Since most people want to run this as a service, having some sort of an example file is very useful to have. --- contrib/oauth2_proxy.service.example | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 contrib/oauth2_proxy.service.example diff --git a/contrib/oauth2_proxy.service.example b/contrib/oauth2_proxy.service.example new file mode 100644 index 0000000..0628fa7 --- /dev/null +++ b/contrib/oauth2_proxy.service.example @@ -0,0 +1,22 @@ +# Systemd service file for oauth2_proxy daemon +# +# Date: Feb 9, 2016 +# Author: Srdjan Grubor + +[Unit] +Description=oauth2_proxy daemon service +After=syslog.target network.target + +[Service] +# www-data group and user need to be created before using these lines +User=www-data +Group=www-data + +ExecStart=/usr/local/bin/oauth2_proxy -config="/etc/oauth2_proxy.cfg" +ExecReload=/bin/kill -HUP $MAINPID + +KillMode=process +Restart=always + +[Install] +WantedBy=multi-user.target