|
|
@ -53,15 +53,17 @@ msg_ok "Installed Jellyseerr"
|
|
|
|
msg_info "Creating Service"
|
|
|
|
msg_info "Creating Service"
|
|
|
|
cat <<EOF >/etc/systemd/system/jellyseerr.service
|
|
|
|
cat <<EOF >/etc/systemd/system/jellyseerr.service
|
|
|
|
[Unit]
|
|
|
|
[Unit]
|
|
|
|
Description=jellyseerr Service
|
|
|
|
Description=Jellyseerr Service
|
|
|
|
After=network.target
|
|
|
|
Wants=network-online.target
|
|
|
|
|
|
|
|
After=network-online.target
|
|
|
|
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
[Service]
|
|
|
|
EnvironmentFile=/etc/jellyseerr/jellyseerr.conf
|
|
|
|
EnvironmentFile=/etc/jellyseerr/jellyseerr.conf
|
|
|
|
Environment=NODE_ENV=production
|
|
|
|
Environment=NODE_ENV=production
|
|
|
|
Type=exec
|
|
|
|
Type=exec
|
|
|
|
|
|
|
|
Restart=on-failure
|
|
|
|
WorkingDirectory=/opt/jellyseerr
|
|
|
|
WorkingDirectory=/opt/jellyseerr
|
|
|
|
ExecStart=/usr/bin/yarn start
|
|
|
|
ExecStart=/usr/bin/node dist/index.js
|
|
|
|
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|
|
|
|
WantedBy=multi-user.target
|
|
|
|