mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2026-03-12 17:07:23 +01:00
Fixes #17: start services after unattended upgrades
This commit is contained in:
9
conf/ehdd-unattended-upgrades-after.path
Normal file
9
conf/ehdd-unattended-upgrades-after.path
Normal file
@@ -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
|
||||
7
conf/ehdd-unattended-upgrades-after.service
Normal file
7
conf/ehdd-unattended-upgrades-after.service
Normal file
@@ -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