From 6fc2d74bbea563749659218e5a83ef778c33ee97 Mon Sep 17 00:00:00 2001 From: "Fafner [_KeyZee_]" Date: Mon, 12 Oct 2020 11:57:21 +0200 Subject: [PATCH] Create aquarium.service.sample Adding a service to automatically start aquarium when running it for multi-user. --- etc/systemd/system/aquarium.service.sample | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 etc/systemd/system/aquarium.service.sample diff --git a/etc/systemd/system/aquarium.service.sample b/etc/systemd/system/aquarium.service.sample new file mode 100644 index 00000000..46f0c647 --- /dev/null +++ b/etc/systemd/system/aquarium.service.sample @@ -0,0 +1,14 @@ +[Unit] +Description=aquarium service with docker compose +Requires=docker.service +After=docker.service + +[Service] +Type=forking +RemainAfterExit=true +WorkingDirectory=path to the directory where you installed aquarium> +ExecStart=/usr/bin/docker-compose up -d --remove-orphans +ExecStop=/usr/bin/docker-compose down + +[Install] +WantedBy=multi-user.target