2020-03-29 15:54:36 +02:00
|
|
|
# Systemd service file for oauth2-proxy daemon
|
2016-02-12 21:22:33 +02:00
|
|
|
#
|
|
|
|
# Date: Feb 9, 2016
|
|
|
|
# Author: Srdjan Grubor <sgnn7@sgnn7.org>
|
|
|
|
|
|
|
|
[Unit]
|
2020-03-29 15:54:36 +02:00
|
|
|
Description=oauth2-proxy daemon service
|
2016-02-12 21:22:33 +02:00
|
|
|
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
|
|
|
|
|
2020-07-12 16:50:19 +02:00
|
|
|
ExecStart=/usr/local/bin/oauth2-proxy --config=/etc/oauth2-proxy.cfg
|
2016-02-12 21:22:33 +02:00
|
|
|
ExecReload=/bin/kill -HUP $MAINPID
|
|
|
|
|
|
|
|
KillMode=process
|
|
|
|
Restart=always
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|