diff options
author | Georg | 2021-07-21 13:04:22 +0200 |
---|---|---|
committer | Georg | 2021-07-21 13:04:22 +0200 |
commit | eb04685ad152984c5903c94d5f33f5296cf6e277 (patch) | |
tree | bfd7c1f6d40dc9195aad74104c4600c0fbaaa9aa /systemd/cytube.service | |
parent | 3d1dead13b5f3d7674b98a3f8684686d8fbc681e (diff) | |
download | system-eb04685ad152984c5903c94d5f33f5296cf6e277.tar.gz system-eb04685ad152984c5903c94d5f33f5296cf6e277.tar.bz2 system-eb04685ad152984c5903c94d5f33f5296cf6e277.zip |
Initial Systemd Service Run: 3/3
Signed-off-by: Georg <georg@lysergic.dev>
Diffstat (limited to 'systemd/cytube.service')
-rw-r--r-- | systemd/cytube.service | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/systemd/cytube.service b/systemd/cytube.service new file mode 100644 index 0000000..cfb507d --- /dev/null +++ b/systemd/cytube.service @@ -0,0 +1,15 @@ +[Unit] +Description=CyTube +After=network.target mysqld.service + +[Service] +Type=simple +User=cytube +Group=cytube +WorkingDirectory=/opt/cytube/sync/ +Environment=NODE_ENV=production +ExecStart=/opt/cytube/.nvm/versions/node/v14.17.0/bin/node /opt/cytube/sync/index.js +Restart=always + +[Install] +WantedBy=multi-user.target |