units: use symbolic exit code names

(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.)
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2019-07-28 15:00:08 +02:00
parent 148ffa2e4d
commit 716e6f4488
5 changed files with 5 additions and 5 deletions

View file

@ -18,5 +18,5 @@ Before=shutdown.target
[Service]
Type=oneshot
ExecStart=@rootbindir@/systemd-tmpfiles --clean
SuccessExitStatus=65
SuccessExitStatus=DATAERR
IOSchedulingClass=idle

View 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

View 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

View 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

View 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