2024-07-10, 04:27 PM
(This post was last modified: 2024-07-10, 04:28 PM by TheDreadPirate. Edited 1 time in total.)
(2024-07-10, 04:15 PM)jaiovi Wrote: Thank you. But even then, by default /etc/systemd/system/jellyfin.service appeared like this.
Code:GNU nano 6.2 /etc/systemd/system/jellyfin.service
[Unit]
Description=Jellyfin
After=network.target
[Service]
Type=simple
User=ubuntu
Restart=always
ExecStart=/opt/jellyfin/jellyfin.sh
[Install]
WantedBy=multi-user.target
ExecStart where should point at?
That file should not exist in a "one-liner" install. A package/one-liner install will create this file.
/etc/systemd/system/multi-user.target.wants/jellyfin.service
Which looks like this.
Code:
[Unit]
Description = Jellyfin Media Server
After = network-online.target
[Service]
Type = simple
EnvironmentFile = /etc/default/jellyfin
User = jellyfin
Group = jellyfin
WorkingDirectory = /var/lib/jellyfin
ExecStart = /usr/bin/jellyfin $JELLYFIN_WEB_OPT $JELLYFIN_FFMPEG_OPT $JELLYFIN_SERVICE_OPT $JELLYFIN_NOWEBAPP_OPT $JELLYFIN_ADDITIONAL_OPTS
Restart = on-failure
TimeoutSec = 15
SuccessExitStatus=0 143
[Install]
WantedBy = multi-user.target