]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
units: use symbolic exit code names
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sun, 28 Jul 2019 13:00:08 +0000 (15:00 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 29 Jul 2019 13:54:53 +0000 (15:54 +0200)
(nspawn uses 133 which doesn't have a name. That's reasonable, because
there's less chance of conflict with a return value from the payload.)

units/systemd-tmpfiles-clean.service.in
units/systemd-tmpfiles-setup-dev.service.in
units/systemd-tmpfiles-setup.service.in
units/user/systemd-tmpfiles-clean.service.in
units/user/systemd-tmpfiles-setup.service.in

index 9e2f04bfefdbe358369dc66e34a582f742bd932e..5d70aafb29f7cf411906b7c0925788dae00e7386 100644 (file)
@@ -18,5 +18,5 @@ Before=shutdown.target
 [Service]
 Type=oneshot
 ExecStart=@rootbindir@/systemd-tmpfiles --clean
-SuccessExitStatus=65
+SuccessExitStatus=DATAERR
 IOSchedulingClass=idle
index 50df15c291c15400c105cd6546086b408224cb35..ed52db4953a6c7a5a4f309520a387414d779a60d 100644 (file)
@@ -19,4 +19,4 @@ Before=sysinit.target local-fs-pre.target systemd-udevd.service shutdown.target
 Type=oneshot
 RemainAfterExit=yes
 ExecStart=@rootbindir@/systemd-tmpfiles --prefix=/dev --create --boot
-SuccessExitStatus=65 73
+SuccessExitStatus=DATAERR CANTCREAT
index b02bbcd61b7004a481b4b56f4aea278bb8cb8e3c..32a475d71531a2121ebecf89388014733228c1e1 100644 (file)
@@ -20,4 +20,4 @@ RefuseManualStop=yes
 Type=oneshot
 RemainAfterExit=yes
 ExecStart=@rootbindir@/systemd-tmpfiles --create --remove --boot --exclude-prefix=/dev
-SuccessExitStatus=65 73
+SuccessExitStatus=DATAERR CANTCREAT
index 9cd19720d3e1d481beed7847f0e0171b3477c628..306b064e895330e443b43af8e14407eb5cc1d691 100644 (file)
@@ -17,5 +17,5 @@ Before=basic.target shutdown.target
 [Service]
 Type=oneshot
 ExecStart=@rootbindir@/systemd-tmpfiles --user --clean
-SuccessExitStatus=65
+SuccessExitStatus=DATAERR
 IOSchedulingClass=idle
index 6467dab8969ab1593a9f8390456ab2403b4a9327..a852ef5748038647bccd69874590414bb532377f 100644 (file)
@@ -19,7 +19,7 @@ RefuseManualStop=yes
 Type=oneshot
 RemainAfterExit=yes
 ExecStart=@rootbindir@/systemd-tmpfiles --user --create --remove --boot
-SuccessExitStatus=65
+SuccessExitStatus=DATAERR
 
 [Install]
 WantedBy=basic.target