diff options
Diffstat (limited to 'shadow.service')
-rw-r--r-- | shadow.service | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/shadow.service b/shadow.service index 82da5c41d962..39025d90e1cb 100644 --- a/shadow.service +++ b/shadow.service @@ -4,7 +4,8 @@ After=systemd-sysusers.service [Service] Type=simple -ExecStart=/bin/sh -c '/usr/bin/pwck -r ; /usr/bin/grpck -r' +# Always run both checks, but fail the service if either fails +ExecStart=/bin/sh -c '/usr/bin/pwck -r || r=1; /usr/bin/grpck -r && exit $r' Nice=19 IOSchedulingClass=best-effort IOSchedulingPriority=7 |