-
Notifications
You must be signed in to change notification settings - Fork 397
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add systemd unit file #156
Comments
@robinbowes You might consider using the package from Fedora: http://pkgs.fedoraproject.org/cgit/sniproxy.git/tree/ |
Aha, that's useful, thanks. Any chance you can backport their files into your repo so building from source produces the same result? R. |
I use the following unit file, which is slightly different from the one provided in the fedora package: /usr/lib/systemd/system/sniproxy.unit [Unit]
Description=Transparent TLS proxy
Documentation=https://github.com/dlundquist/sniproxy
After=syslog.target
After=network-online.target
[Service]
Type=forking
PIDFile=/var/run/sniproxy.pid
ExecStart=/usr/sbin/sniproxy
Restart=always
[Install]
WantedBy=multi-user.target Should be disted with an initial configuration that at least contains:
Must have a user "sniproxy", must have a directory
|
@jornane, never use Use |
I had a discussion with someone with better knowledge than me who persuaded me that I seem to recall his reasoning was that systemd uses process groups to correctly identify the daemon process. I can't find the discussion anywhere, but I was persuaded at the time and don't have a problem with R. |
@robinbowes Probably even nicer would be supporting That way, systemd could detect hangs and restart the service automatically by using the software/service watchdog functionality: http://0pointer.de/blog/projects/watchdog.html |
I'm deploying on CentOS 7 - I'd like a systemd unit file. I will craft one and send a PR, and modify the spec file to use it.
The text was updated successfully, but these errors were encountered: