20 lines
448 B
SYSTEMD
20 lines
448 B
SYSTEMD
|
# systemd service, to start the app at the launch of the system and restart it if it crash
|
||
|
[Unit]
|
||
|
Description=Launcher_json Service
|
||
|
|
||
|
[Service]
|
||
|
# Non-root user
|
||
|
User=www-data
|
||
|
# Workspace directory
|
||
|
WorkingDirectory=/opt/launcher_json
|
||
|
# Path to Reposilite executable/script and its configuration.
|
||
|
ExecStart=/opt/launcher_json/start.sh
|
||
|
# Policy
|
||
|
SuccessExitStatus=0
|
||
|
TimeoutStopSec=10
|
||
|
Restart=on-failure
|
||
|
RestartSec=5
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|