summaryrefslogtreecommitdiffstats
path: root/abs/core/shadow/shadow.service
diff options
context:
space:
mode:
Diffstat (limited to 'abs/core/shadow/shadow.service')
-rw-r--r--abs/core/shadow/shadow.service11
1 files changed, 11 insertions, 0 deletions
diff --git a/abs/core/shadow/shadow.service b/abs/core/shadow/shadow.service
new file mode 100644
index 0000000..39025d9
--- /dev/null
+++ b/abs/core/shadow/shadow.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=Verify integrity of password and group files
+After=systemd-sysusers.service
+
+[Service]
+Type=simple
+# 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