20 lines
405 B
Desktop File
20 lines
405 B
Desktop File
[Unit]
|
|
Description=AutoLibrary Website
|
|
After=network.target
|
|
|
|
[Service]
|
|
Type=exec
|
|
User=autolibrary
|
|
Group=autolibrary
|
|
WorkingDirectory=/opt/autolibrary/current
|
|
ExecStart=/opt/autolibrary/current/webserver start --config /opt/autolibrary/shared/config.json
|
|
Environment=GIN_MODE=release
|
|
UMask=0027
|
|
NoNewPrivileges=true
|
|
Restart=on-failure
|
|
RestartSec=5s
|
|
TimeoutStopSec=20s
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|