Skip to content

Instantly share code, notes, and snippets.

@duythien
Created April 1, 2014 16:10
Show Gist options
  • Select an option

  • Save duythien/9917340 to your computer and use it in GitHub Desktop.

Select an option

Save duythien/9917340 to your computer and use it in GitHub Desktop.
dnscrypt.service
# For more info about custom unit files, see systemd.unit(5) or
# http://fedoraproject.org/wiki/Systemd#How_do_I_customize_a_unit_file.2F_add_a_custom_unit_file.3F
# For example, if you want to increase mysql's open-files-limit to 10000,
# you need to increase systemd's LimitNOFILE setting, so create a file named
# "/etc/systemd/system/mariadb.service.d/limits.conf" containing:
# [Service]
# LimitNOFILE=10000
# Note: /usr/lib/... is recommended in the .include line though /lib/...
# still works.
# Don't forget to reload systemd daemon after you change unit configuration:
# root> systemctl --system daemon-reload[Unit]
Description=The Dnscrypt
After=network.target
[Service]
Type=forking
ExecStartPre=/usr/local/sbin/dnscrypt-proxy --local-address=127.0.0.1:53 --daemonize
ExecStart=/usr/local/sbin/dnscrypt-proxy --local-address=127.0.0.1:53 --daemonize
ExecReload=/bin/kill -s HUP $MAINPID
ExecStop=/bin/kill -s QUIT $MAINPID
PrivateTmp=true
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment