X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=support%2Fsystemd%2Fpeertube.service;h=88856385c464e298d3b7f14e55546d8815a3c311;hb=6040f87d143a5fa01db79867ece8197c3ce7be47;hp=b9d01f235ea7c2243b3ab5d045f0d933171d7fc5;hpb=63bfad7ec984dad1e9a96de1f191db5cc78db5bf;p=github%2FChocobozzz%2FPeerTube.git diff --git a/support/systemd/peertube.service b/support/systemd/peertube.service index b9d01f235..88856385c 100644 --- a/support/systemd/peertube.service +++ b/support/systemd/peertube.service @@ -1,14 +1,15 @@ [Unit] Description=PeerTube daemon -After=network.target +After=network.target postgresql.service redis-server.service [Service] Type=simple Environment=NODE_ENV=production -User=myuser -Group=myuser +Environment=NODE_CONFIG_DIR=/var/www/peertube/config +User=peertube +Group=peertube ExecStart=/usr/bin/npm start -WorkingDirectory=/path/to/peertube +WorkingDirectory=/var/www/peertube/peertube-latest StandardOutput=syslog StandardError=syslog SyslogIdentifier=peertube