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.
This commit is contained in:
parent
36128e971f
commit
b14be4974f
22
contrib/oauth2_proxy.service.example
Normal file
22
contrib/oauth2_proxy.service.example
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
# Systemd service file for oauth2_proxy daemon
|
||||||
|
#
|
||||||
|
# Date: Feb 9, 2016
|
||||||
|
# Author: Srdjan Grubor <sgnn7@sgnn7.org>
|
||||||
|
|
||||||
|
[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
|
Loading…
Reference in New Issue
Block a user