From 498e26f2abe0bfcf62e650636380bd916e8d1cd9 Mon Sep 17 00:00:00 2001 From: hzoppetti Date: Fri, 17 May 2019 08:39:55 -0400 Subject: [PATCH] Added step to move service file to /etc/systemd/system dir --- docs/quick-answers/linux/start-service-at-boot/index.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/quick-answers/linux/start-service-at-boot/index.md b/docs/quick-answers/linux/start-service-at-boot/index.md index 49d25260ca3..db845af082c 100644 --- a/docs/quick-answers/linux/start-service-at-boot/index.md +++ b/docs/quick-answers/linux/start-service-at-boot/index.md @@ -61,6 +61,11 @@ WantedBy=multi-user.target This defines a simple service. The critical part is the `ExecStart` directive, which specifies the command that will be run to start the service. +4. Copy the unit file to `/etc/systemd/system` and give it permissions: + + sudo cp myservice.service /etc/systemd/system/myservice.service + sudo chmod 644 /etc/systemd/system/myservice.service + For more information about the unit file and its available configuration options, see the [systemd documentation](https://www.freedesktop.org/wiki/Software/systemd/). ## Start and Enable the Service