Skip to content

Instantly share code, notes, and snippets.

@gitsrc
Created January 21, 2019 02:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gitsrc/4aa9031967440689942954abf56591d9 to your computer and use it in GitHub Desktop.
Save gitsrc/4aa9031967440689942954abf56591d9 to your computer and use it in GitHub Desktop.
haproxy.service
[Unit]
Description=tunlink
Documentation=tunlink
After=network.target
[Service]
Type=simple
StandardError=journal
ExecStart=/usr/local/sbin/haproxy -f /etc/haproxy/haproxy.cfg
ExecReload=/bin/kill -HUP $MAINPID
ExecStop=/bin/kill -TERM $MAINPID
[Install]
WantedBy=multi-user.target
@gitsrc
Copy link
Author

gitsrc commented Jan 21, 2019

存储位置: /usr/lib/systemd/system/haproxy.service

@gitsrc
Copy link
Author

gitsrc commented Jan 21, 2019

编写系统服务

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment