Created
November 4, 2019 09:25
-
-
Save ilya-korotya/d2e7c4852637dc391f79c62aebf68b95 to your computer and use it in GitHub Desktop.
Basic config for systemd manager
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=SOCKS5 prxoy for telegram | |
After=syslog.target | |
After=network.target | |
[Service] | |
Type=forking | |
PIDFile=/home/ec2-user/go/src/github.com/ilia-korotia/simpleproxy/pid | |
User=root | |
Group=root | |
ExecStart=/home/ec2-user/go/src/github.com/ilia-korotia/simpleproxy/runner.sh | |
ExecStop=/bin/cat /home/ec2-user/go/src/github.com/ilia-korotia/simpleproxy/pid | /bin/kill 9 | |
ExecReload=/home/ec2-user/go/src/github.com/ilia-korotia/simpleproxy/runner.sh | |
Restart=always | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment