Files
address-tool/deploy/address-tool.service.example

23 lines
480 B
Plaintext

[Unit]
Description=Address Tool API Service
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
WorkingDirectory=/opt/address-tool
EnvironmentFile=-/etc/address-tool/address-tool.env
ExecStart=/usr/bin/python3 /opt/address-tool/server.py
Restart=on-failure
RestartSec=3
User=address-tool
Group=address-tool
NoNewPrivileges=true
PrivateTmp=true
ProtectSystem=strict
ProtectHome=true
ReadWritePaths=/opt/address-tool
[Install]
WantedBy=multi-user.target