-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
using upstart scripts in packages #3027
Comments
I am curious to know why you are interested in writing your own upstart service configuration when Developer Guide explains how to provide a For DSM 5 and 6 support, a new generic script will be soon available for package design: So what are your needs requiring a specific upstart script for your package ? |
The primary reason is the respawn feature of upstart (automatic restart of the process in case the PID dies) and the simple logging. Besides that I'm not sure how logrotate is handled (is it handled at all?). You can't send a signal to reopen the stdout/stderr redirect so you've to use a copy/truncate solution which is bad for performance and you can loose log entries. With a direct upstart script instead of the ductape solution via a traditional start-stop-status wrapper script all of these problems would be gone. |
As a package maintainer, problems go away when you keep thinks simple. From my point of view, a package is designed to install application in a specific version... or else it is almost impossible to reproduce, diagnose or provide support. |
Jackett is a little bit special due to it's high release frequency (multiple releases per week, sometimes even per day). Depending on the popularity of an indexer we get several duplicate issues if something breaks. That's why we decided to use the self updating mechanism instead of going through the various packaging systems. I've already added PIDFile support and there's a pull request (#3032) to improve the syno init script. Closing this issue as it seems like using direct upstart configs is simply not supported. |
It may be possible, I have found following references:
I think With current |
I had brief access to a DSM 6.1 box, no I no longer have access to test this. |
Hi,
Since DSM 5 it seems like upstart is used as init system. By default the syno pkg installer generates a corresponding upstart config file /etc/init/pkgctl-$PACKAGE.conf.
Someone knows how the package can supply it's own upstart config (instead of the auto generated one) so we can make use of upstart features like automatic respwan?
https://neerajcodes.wordpress.com/2017/03/08/creating-a-package-for-synology-nas-device/ mentions that it can be done via the conf directory but no details on how to use it.
The official documentation doesn't mention this at all.
https://developer.synology.com/developer-guide/synology_package/conf.html
The text was updated successfully, but these errors were encountered: