Jump to content

How to Not start emby server automatically on synology


Recommended Posts

Posted

I have emby server installed on synology NAS through package center.  I use emby server on weekends only so want to be able to manually start/stop server when needed  - not have it start automatically.  Is there any option to change auto-startup?   I can't find any option on Emby server settings

FrostByte
Posted

Since there is no option to do this within Emby the only way I can think of is to use Task Scheduler and create a triggered task to stop Emby. 

User: admin

Event: boot-up (Shutdown may also work as I don't believe packages which were stopped at shutdown will auto start at bootup)

Enabled

Run Command:

sudo synopkg stop EmbyServer

Then you can use package center to manually run Emby when needed.

  • Thanks 1
Posted

Thank you for suggestion - 

I was getting "sudo: password required" error and couldn't find a method to send password to script without getting "terminal required to read password", so I ran it as root user and omitted the sudo

The task output is confusing as to whether it ran script or if it was successful

Quote

{"action":"stop","beta":false,"error":{"code":273,"description":"Failed to run script, script=[stop]"},"finished":true,"language":"enu","last_stage":"prepare_stop","package":"EmbyServer","pid":18049,"scripts":[{"code":1,"message":"","type":"stop"}],"stage":"stop_failed","status":"stop","status_code":324,"status_description":"translate from systemd status","success":false,"username":"","version":"4.8.8.0-724080800"}

BUT system log shows that EmbyServer was successfully stopped and service isn't showing in Task Manager

Exactly what I wanted,

thanks again

 

  • Like 1
  • Thanks 1
FrostByte
Posted

Oops, ya I modified my system so that my admin account doesn't have to enter the password again time in order to do sudo commands.  Good to see that it's working for you.

  • Thanks 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...