Browse Source

Systemd service file to new user and dir

master
Ruben van de Ven 2 years ago
parent
commit
90822d761a
  1. 6
      plottingdata_coco.service

6
plottingdata_coco.service

@ -1,9 +1,9 @@ @@ -1,9 +1,9 @@
[Unit]
Description=PlottingData COCO interface
[Service]
ExecStart=/home/ruben/coco/venv/bin/python /home/ruben/coco/server.py --db /home/ruben/coco/coco_train.db --port 8080
WorkingDirectory=/home/ruben/coco
User=www-data
ExecStart=/home/pd/coco/venv/bin/python /home/pd/coco/server.py --db /home/pd/coco/coco_train.db --port 8080
WorkingDirectory=/home/pd/coco
User=pd
Restart=on-failure
[Install]
WantedBy=multi-user.target

Loading…
Cancel
Save