git.iko.soy/typeable/oauth2-proxy
on master help sign in
Merge pull request #208 from sgnn7/add_service_example

Added SystemD example service file

commit54efb1a2e14269cf741cbf8a93c8dbcf43012386 authorJehiah Czebotar <jehiah@gmail.com> dateWed 17 Feb 2016, 04:45 (11 years ago) parent97ec999b14be49
1 file changed+22
contrib/oauth2_proxy.service.example+22
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