[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_RESTART_OPT} ${JELLYFIN_...
The restart script pipes the restart command into ``at`. case $cmd in 'systemctl') echo "sleep 2; /usr/bin/sudo $( which systemctl ) restart jellyfin" | at now ;; I agree with @brianjmurrell, why not just execute the systemctl command directly, instead of passing it to at?