simonclausen / dnscrypt-autoinstall

Automatic installation and configuration of DNSCrypt (on Debian + Redhat like systems). This script will install DNSCrypt and configure it to start on boot and use an optional dnscrypt service.
Other
224 stars 73 forks source link

systemd support #18

Closed AladW closed 10 years ago

AladW commented 10 years ago

First attempt at systemd support; organized in two service (init) files, and six config files. This is because I haven't found a way to run two daemons from one service file (without it halting indefinitely - one process then waits for the other to finish).

The backup is started by the main service, as "Wants"; this means if the backup fails to start the main won't also fail. Variables are based on the official Arch Linux dnscrypt-proxy package. So far, I've tested config-dnscrypteu in Arch.

AladW commented 10 years ago

9

AladW commented 10 years ago

Another argument for config files and fixed .service is you don't have to reload the systemd configuration (daemon-reload).

simonclausen commented 10 years ago

Nice