Environment
AMP Version: 2.8
Build: 25/06/2026 23:15
OS: Ubuntu Server 26.04 LTS
Install method: Linux systemd service
Run user: amp
Problem description
Multiple production AMP hosts experienced all instances shutting down simultaneously. The instances were not crashing; AMP received a systemd stop request, executed its configured ExecStop command, gracefully stopped all instances, and then restarted normally.
Evidence
[Service]
Type=oneshot
RemainAfterExit=yes
User=amp
Group=amp
ExecStart=/opt/cubecoders/amp/ampinstmgr startboot true
TimeoutSec=180
ExecStop=/opt/cubecoders/amp/ampinstmgr stopall
TimeoutStopSec=180
Log example
Jul 07 06:40:58 anarchy systemd[1]: Stopping ampinstmgr.service - AMP Instance Manager...
Jul 07 06:40:58 anarchy ampinstmgr:
Stopping Instance: 'ADS01'
Jul 07 06:40:59 anarchy ampinstmgr:
Instance ADS01 has stopped.
Jul 07 06:40:59 anarchy ampinstmgr:
Stopping Instance: 'Anarchy01'
Jul 07 06:40:59 anarchy ampinstmgr:
Instance Anarchy01 has stopped.
Jul 07 06:41:02 anarchy systemd[1]:
Starting ampinstmgr.service - AMP Instance Manager...
Jul 07 06:41:03 anarchy:
AMP instance ADS01 is now running.
-
stop request comes from systemd
-
AMP shuts down cleanly
-
AMP starts again
-
Individual instances do not start
Pattern observed
This occurred on multiple AMP hosts at the same time. It happened repeatedly on July 2, July 3, and July 7, always near the same time, which coincides with ubuntu automatic update periods.
July 2 ~06:24
July 3 ~06:35
July 7 ~06:41
Trigger investigation
The events coincided with Ubuntu package maintenance activity. PackageKit/apt/needrestart activity was observed immediately before the AMP service restart. Disabling unattended upgrades stopped the issue.
The following were disabled as a workaround:
apt-daily.timer
apt-daily-upgrade.timer
unattended-upgrades.service
Feature request / question
Is there a recommended AMP systemd configuration that prevents a routine service restart from executing
ampinstmgr stopall?
Would CubeCoders consider changing the service architecture so restarting the AMP manager does not terminate all managed instances?
Possible solutions:
-
Separate AMP management daemon from instance lifecycle
-
Add a reload operation
-
Make
ExecStopconditional -
Provide a recommended systemd override for production hosts
-
Support
systemctl reload ampinstmgr.service