feat: extract address tool into standalone project
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
[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
|
||||
Reference in New Issue
Block a user