Skip to content

Commit

Permalink
Add model systemd .service file
Browse files Browse the repository at this point in the history
A .service file can be used in lieu of parsing configuration
and starting with an initscript, but command-line arguments
must be provided in it
  • Loading branch information
kangtastic committed Nov 21, 2017
1 parent bc00c0a commit 093a902
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions eap-proxy.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[Unit]
Description=EAP proxy service
After=network.target

[Service]
Type=forking
Restart=on-failure
PIDFile=<path to PID file, e.g. /var/run/eap_proxy.pid>
ExecStart=/usr/sbin/eap_proxy <IF_WAN> <IF_ROUTER> --ping-gateway --ignore-when-wan-up --ignore-start --ignore-logoff --restart-dhcp --set-mac --daemon --pidfile <path to PID file, e.g. /var/run/eap_proxy.pid> --syslog

[Install]
WantedBy=multi-user.target


0 comments on commit 093a902

Please sign in to comment.