From 570ed2aed2c1e5465767019b1de52fbd8028fad4 Mon Sep 17 00:00:00 2001 From: Georg Date: Wed, 21 Jul 2021 13:04:22 +0200 Subject: Initial Systemd Service Run: 3/3 Signed-off-by: Georg --- systemd/mailcow.service | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 systemd/mailcow.service (limited to 'systemd/mailcow.service') diff --git a/systemd/mailcow.service b/systemd/mailcow.service new file mode 100644 index 0000000..af2d974 --- /dev/null +++ b/systemd/mailcow.service @@ -0,0 +1,14 @@ +[Unit] +Description=Mailcow +Requires=docker.service +After=docker.service + +[Service] +Type=oneshot +RemainAfterExit=true +WorkingDirectory=/opt/mailcow-dockerized +ExecStart=/usr/local/bin/docker-compose up -d +ExecStop=/usr/local/bin/docker-compose down + +[Install] +WantedBy=multi-user.target -- cgit v1.2.3