mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2026-10-25 05:59:53 +01:00
Fixes #17: start services after unattended upgrades
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
[Unit]
|
||||
Description=Monitor unattended upgrades and ensure ehdd services are started after upgrades
|
||||
|
||||
[Path]
|
||||
PathModified=/var/lib/apt/periodic/unattended-upgrades-stamp
|
||||
Unit=ehdd-unattended-upgrades-after.service
|
||||
|
||||
[Install]
|
||||
WantedBy=paths.target
|
||||
@@ -0,0 +1,7 @@
|
||||
[Unit]
|
||||
Description=Starts ehdd services
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
WorkingDirectory=<INSTALL_ROOT>
|
||||
ExecStart=<INSTALL_ROOT>/ehdd/run-this-after-reboot.sh --no-mount
|
||||
Reference in New Issue
Block a user