Useful or just crack?<br><b>Crack. Don't do it at home, kids. See the com...
Useful or just crack?
Crack. Don't do it at home, kids. See the comments.
# /etc/systemd/system/systemd-autoreload.path
[Unit]
Description=triggers reload on units' change
[Path]
PathChanged=/etc/systemd/system
PathChanged=/run/systemd/system
[Install]
WantedBy=multi-user.target
# /etc/systemd/system/systemd-autoreload.service
[Unit]
Description=reload PID1 configuration
[Service]
Type=oneshot
ExecStart=/usr/bin/systemctl daemon-reload
Crack. Don't do it at home, kids. See the comments.
# /etc/systemd/system/systemd-autoreload.path
[Unit]
Description=triggers reload on units' change
[Path]
PathChanged=/etc/systemd/system
PathChanged=/run/systemd/system
[Install]
WantedBy=multi-user.target
# /etc/systemd/system/systemd-autoreload.service
[Unit]
Description=reload PID1 configuration
[Service]
Type=oneshot
ExecStart=/usr/bin/systemctl daemon-reload
Shared with: Public
+1'd by: Alexander Tanyukevich
Jóhann B. Guðmundsson - 2015-07-28T19:59:09+0000
crack. . .
Lennart Poettering - 2015-07-29T09:17:56+0000
crack. Reloads are not atomic. What you are doing is massively unsafe. There's a reason we dont do this...
Comments
Comments powered by Disqus