github.com/pusher/oauth2_proxy@v3.2.0+incompatible/contrib/oauth2_proxy.service.example (about) 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