2017-04-18 14:05:37 +00:00
|
|
|
[Unit]
|
|
|
|
Description=Start WebODM OpenDroneMap Service Container
|
|
|
|
Requires=docker.service
|
2018-09-08 22:25:50 +00:00
|
|
|
After=docker.service
|
2017-04-18 14:05:37 +00:00
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=forking
|
|
|
|
User=odm
|
|
|
|
Group=odm
|
|
|
|
WorkingDirectory=/opt/WebODM
|
2021-10-05 05:56:08 +00:00
|
|
|
Environment=PATH=/home/odm/.local/bin:/usr/sbin:/usr/bin:/sbin:/bin
|
2017-04-18 14:05:37 +00:00
|
|
|
ExecStart=/bin/bash -c 'screen -dmS webodm /opt/WebODM/webodm.sh start'
|
|
|
|
ExecStop=/bin/bash -c '/opt/WebODM/webodm.sh stop'
|
|
|
|
Restart=on-failure
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|