From 83be051ed8b7eba1d800a8b28f8d37ea2bfcbf16 Mon Sep 17 00:00:00 2001 From: azlux Date: Thu, 20 Oct 2016 12:41:47 +0200 Subject: [PATCH] oneshot add From @datenklause With Type=oneshot, systemd waits until the start action has completed before it considers the unit to be active, so dependencies start only after the start action has succeeded. With Type=simple, dependencies will start immediately after the start action has been dispatched. --- log2ram.service | 1 + 1 file changed, 1 insertion(+) diff --git a/log2ram.service b/log2ram.service index 37fce3e..eab3643 100644 --- a/log2ram.service +++ b/log2ram.service @@ -3,6 +3,7 @@ Description=Log2Ram Before=syslog.target mysql.service fail2ban.service nginx.service rsyslog.service [Service] +Type=oneshot ExecStart= /usr/local/bin/log2ram start ExecStop= /usr/local/bin/log2ram stop ExecReload= /usr/local/bin/log2ram write