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.
commitb14be4974f8a3307b4bb0c51cdece2e424181298
authorSrdjan Grubor <sgnn7@sgnn7.org>
dateFri 12 Feb 2016, 13:22 (11 years ago)
parent36128e9
contrib/oauth2_proxy.service.examplenew file+22
@@ -0,0 +1,22 @@
1+# Systemd service file for oauth2_proxy daemon
2+#
3+# Date: Feb 9, 2016
4+# Author: Srdjan Grubor <sgnn7@sgnn7.org>
5+
6+[Unit]
7+Description=oauth2_proxy daemon service
8+After=syslog.target network.target
9+
10+[Service]
11+# www-data group and user need to be created before using these lines
12+User=www-data
13+Group=www-data
14+
15+ExecStart=/usr/local/bin/oauth2_proxy -config="/etc/oauth2_proxy.cfg"
16+ExecReload=/bin/kill -HUP $MAINPID
17+
18+KillMode=process
19+Restart=always
20+
21+[Install]
22+WantedBy=multi-user.target