22 lines
597 B
Desktop File
22 lines
597 B
Desktop File
[Unit]
|
|
Description=Write non-sensitive GuestOps monitoring status
|
|
Requires=docker.service
|
|
After=docker.service network-online.target
|
|
ConditionPathIsDirectory=/srv/guestops/current
|
|
ConditionPathIsDirectory=/var/backups/guestops
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
WorkingDirectory=/srv/guestops/current
|
|
UMask=0022
|
|
ExecStart=/usr/bin/python3 /srv/guestops/current/deploy/monitor_status.py
|
|
NoNewPrivileges=true
|
|
PrivateTmp=true
|
|
ProtectHome=true
|
|
ProtectSystem=strict
|
|
RuntimeDirectory=guestops-monitor
|
|
RuntimeDirectoryMode=0755
|
|
RuntimeDirectoryPreserve=yes
|
|
ReadWritePaths=/run/guestops-monitor
|
|
TimeoutStartSec=2min
|