2016-02-12 19:22:33 +00:00
|
|
|
# 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
|
|
|
|
|
2016-05-15 21:22:39 +00:00
|
|
|
ExecStart=/usr/local/bin/oauth2_proxy -config=/etc/oauth2_proxy.cfg
|
2016-02-12 19:22:33 +00:00
|
|
|
ExecReload=/bin/kill -HUP $MAINPID
|
|
|
|
|
|
|
|
KillMode=process
|
|
|
|
Restart=always
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|