Files
cmautobuy/admin/deploy/cmautobuy-admin.service
T

28 lines
584 B
Desktop File

[Unit]
Description=CM AutoBuy Admin
After=network-online.target mysql84.service
Wants=network-online.target
Requires=mysql84.service
[Service]
Type=simple
User=cmautobuy
Group=cmautobuy
WorkingDirectory=/opt/cmautobuy
EnvironmentFile=/etc/cmautobuy/admin.env
ExecStart=/opt/cmautobuy/cmautobuy-admin -addr 127.0.0.1:18080
Restart=on-failure
RestartSec=5s
TimeoutStopSec=30s
UMask=0077
NoNewPrivileges=true
PrivateTmp=true
ProtectSystem=strict
ProtectHome=true
ReadWritePaths=/opt/cmautobuy/data
RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6
[Install]
WantedBy=multi-user.target