Feedback: systemd poweroff fixfiles is it possible?
T.C. Hollingsworth
tchollingsworth at gmail.com
Sun Jan 22 23:16:30 UTC 2012
On Sun, Jan 22, 2012 at 4:09 PM, T.C. Hollingsworth
<tchollingsworth at gmail.com> wrote:
> Drop this in /etc/systemd/system/fixfiles.service or such and it
> should do the trick:
Sorry, itchy submit finger. Needs a little more:
[Unit]
Name=Fix SELinux Contexts on Shutdown
DefaultDependencies=no
After=local-fs.target sysinit.target
Before=poweroff.service reboot.service halt.service
[Service]
Type=oneshot
ExecStart=/usr/bin/fixfiles -q onboot
[Install]
WantedBy=shutdown.target
Then, just "systemctl enable fixfiles.service" and you should be all set.
-T.C.
More information about the users
mailing list