From: Hideki Yamane Date: Thu, 6 Oct 2016 11:36:35 +0000 (+0900) Subject: Type=oneshot is better than Type=simple X-Git-Tag: v0.4.0~13^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F275%2Fhead;p=thirdparty%2Fsnapper.git Type=oneshot is better than Type=simple see https://www.freedesktop.org/software/systemd/man/systemd.service.html#Type= "Behavior of oneshot is similar to simple; however, it is expected that the process has to exit before systemd starts follow-up units." boot service is expected to be executed once, and would not affects other services. --- diff --git a/data/boot.service b/data/boot.service index 2801a4bf..5d3ec6a5 100644 --- a/data/boot.service +++ b/data/boot.service @@ -2,5 +2,5 @@ Description=Take snapper snapshot of root on boot [Service] -Type=simple +Type=oneshot ExecStart=/usr/bin/snapper --config root create --cleanup-algorithm number --description "boot"