1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
|
[Unit]
Description=git-ubuntu importer service worker
[Service]
User=ubuntu
Group=ubuntu
Type=notify
ExecStart=/snap/bin/git-ubuntu importer-service-worker %i tcp://REPLACE_WITH_CONTROLLER_IP:1692
Restart=always
RestartSec=60
# 259200 == 72 hours
WatchdogSec=259200
# Attempt to give the worker some time to clean up /tmp on a watchdog-driven abort
TimeoutAbortSec=600
# Arrange a KeyboardInterrupt on watchdog termination so behaviour can be easily verified manually
WatchdogSignal=SIGINT
# Allow systemd to clean up any mess in /tmp
PrivateTmp=yes
Environment=PYTHONUNBUFFERED=1
|