diff --git a/Makefile b/Makefile index d357ee2..c5c7108 100644 --- a/Makefile +++ b/Makefile @@ -12,5 +12,6 @@ install: setup: sudo install -m 0644 kas.service /etc/systemd/system/kas.service - sudo install -m0700 -d /etc/kas + sudo install -m 0700 -d /etc/kas sudo install -m 0600 kas.yaml /etc/kas/kas.yaml + sudo systemctl enable kas.service diff --git a/kas.service b/kas.service index d6ad05b..d4e58a8 100644 --- a/kas.service +++ b/kas.service @@ -8,3 +8,6 @@ ExecStart=/usr/local/bin/kas -f /etc/kas/kas.yaml Restart=on-failure Group=daemon User=daemon + +[Install] +WantedBy=default.target