]> git.ipfire.org Git - thirdparty/snapper.git/commitdiff
Type=oneshot is better than Type=simple 275/head
authorHideki Yamane <henrich@debian.org>
Thu, 6 Oct 2016 11:36:35 +0000 (20:36 +0900)
committerHideki Yamane <henrich@debian.org>
Thu, 6 Oct 2016 11:36:35 +0000 (20:36 +0900)
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.

data/boot.service

index 2801a4bf3b67525b5122f80bfca97bd20668f953..5d3ec6a5d7537d95b54b8ef0f0a21b10cc7d4b60 100644 (file)
@@ -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"