From 262c72d44aa5e967a91c49846d3bc64328ea8ae8 Mon Sep 17 00:00:00 2001 From: khevin014 Date: Fri, 28 May 2021 20:57:05 +0800 Subject: [PATCH] docs(help) added instructions to autostart cloudcmd on boot for systems using systemd (#347) --- HELP.md | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/HELP.md b/HELP.md index 374a17d8..ac699090 100644 --- a/HELP.md +++ b/HELP.md @@ -948,6 +948,43 @@ While using Dropbox remember that there is no remote support for the console/ter - view - edit +## Automatically start cloudcmd on boot (for systemd users) + +First, locate the command to run cloudcmd + +```sh +which cloudcmd +``` +take note of the result and create a systemd entry by executing + +```sh +sudo nano /etc/systemd/system/cloudcmd.service +``` +and use this template + +``` +[Unit] +Description = Cloud Commander + +[Service] +TimeoutStartSec = 0 +Restart = always +ExecStart = THE RESULT OF which cloudcmd WE'VE EXECUTED EARLIER +User = YOUR_USER + +[Install] +WantedBy = multi-user.target +``` +Don't forget to change the line for `ExecStart` and `User` + +Save the changes and exit editor. + +You may now enable cloudcmd and set it to autostart on boot by running: + +```sh +sudo systemctl enable --now cloudcmd +``` + ## Get involved There are a lot of ways to be involved in `Cloud Commander` development: