From 90822d761a2d93df4744747fdd5df8530025d5db Mon Sep 17 00:00:00 2001 From: Ruben van de Ven Date: Tue, 10 Mar 2020 08:49:31 +0100 Subject: [PATCH] Systemd service file to new user and dir --- plottingdata_coco.service | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plottingdata_coco.service b/plottingdata_coco.service index 41341be..cc21f8c 100644 --- a/plottingdata_coco.service +++ b/plottingdata_coco.service @@ -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