diff options
Diffstat (limited to '')
-rw-r--r-- | roles/upload/templates/upload.service | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/roles/upload/templates/upload.service b/roles/upload/templates/upload.service new file mode 100644 index 0000000..2d65a74 --- /dev/null +++ b/roles/upload/templates/upload.service @@ -0,0 +1,16 @@ +# {{ ansible_managed }} + +[Unit] +Description=PsiTransfer +After=syslog.target network.target + +[Service] +Type=simple +User={{ upload_user }} +WorkingDirectory=/home/{{ upload_user }}/psitransfer +ExecStart=/usr/bin/node app.js +Environment=NODE_ENV=production PSITRANSFER_ADMIN_PASS="{{ upload_admin_password }}" PSITRANSFER_UPLOAD_PASS="{{ upload_password }}" PSITRANSFER_UPLOAD_DIR="{{ upload_dir }}" +Restart=always + +[Install] +WantedBy=multi-user.target |