15 lines
365 B
SYSTEMD
15 lines
365 B
SYSTEMD
|
[Unit]
|
||
|
Description=Postrun Hooks Runner for Dehydrated: %i
|
||
|
ConditionPathExists=/etc/dehydrated-%i/postrun-hooks.d/
|
||
|
After=dehydrated@%i.service
|
||
|
PartOf=dehydrated.target
|
||
|
|
||
|
[Service]
|
||
|
Type=oneshot
|
||
|
ExecStart=-/usr/bin/find -L /etc/dehydrated-%i/postrun-hooks.d/ -maxdepth 1 -executable -type f -exec {} \;
|
||
|
User=root
|
||
|
Group=root
|
||
|
|
||
|
[Install]
|
||
|
RequiredBy=dehydrated@%i.service
|