-
-
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
Generic service support for DSM 5 and 6 #2949
Generic service support for DSM 5 and 6 #2949
Conversation
1d61d10
to
e970ab4
Compare
@ymartin59 : Thanks for getting this going. I have cherry-picked your commit and started playing around with your demoservice. Stumbled pretty much at the doorstep though. Currently, cross-compiling fails with...
But you probably know this... |
e970ab4
to
6939463
Compare
@m4tt075 This version is now building properly... but generated scripts still need intensive testing... |
@ymartin59 Cheers! OK, I will play around with your demoservice and then try to apply your approach to the TVH package. I have got an XPenology 5.2 and an evansport-6.1 environment for testing. Will report back with the results. |
@ymartin59 Some progress!
This is how far I got this time. Anything (else) you want me to check or look for? |
@ymartin59 Repeated the above test on my DSM 6.1 system. Same result / failure notice. No log file, no further hints why it fails. I then unpacked the spk which was generated and realized that there is no conf folder and that the privilege file is missing. Should not be an issue with 5.2, but might well be one with the 6.1 system. |
@m4tt075 Thanks for testing. I have fixed |
6939463
to
9a4a416
Compare
@m4tt075 Some progress... still buggy features but install and log activity |
9a4a416
to
cb0b280
Compare
For the moment, installer script faced the following bug on DSM 5.2: I have not testing on DSM 6.x yet |
cb0b280
to
f0d4220
Compare
Tested on DSM 5.2 and works properly except uninstall do not remove service configuration, leaving port marked as used. |
@ymartin59 Great stuff! I can confirm what you have written. Here some more detailed observations from my testing process:
Hope this helps. Again, many thanks for taking this on! |
f0d4220
to
68a87c9
Compare
@m4tt075 Many thanks for your testing. I fixed upgrade process and service configuration handling (with DSM 6.x in mind) |
4d0a586
to
7a44c5d
Compare
8b7dc7b
to
0e1aade
Compare
@m4tt075 You probably have an old branch version script. I have fixed |
@ymartin59 I can't get the propiretary
What am I doing wrong? |
I guess it does not work because of commented |
@ymartin59 Thanks, and no worries. For every mistake you make, I make 20. I still have not been able to get the
For transparency, I have not yet been able to run my TVH package, but that's likely related to the 20 mistakes I introduce while you make 1... |
@ymartin59 I finally managed to get Two more questions though:
Background: I have tried the encapsulated version following your demoservice example, but ran into issues with lacking access rights to certain configuration folders. This is all still on a XPE 5.2 system. |
@m4tt075 On DSM 5.2 installer script |
0e1aade
to
1f9010b
Compare
@m4tt075 I just fixed |
1f9010b
to
50b92ed
Compare
50b92ed
to
b02877f
Compare
So this is ready and @BenjV also likes it? |
@ymartin59 and @m4tt075 @Safihre |
@BenjV Not really noarch due to the compiled components |
For information, I have plan to disjoin ADMIN_PORT and an additional SERVICE_PORT to generate service configuration (.sc) for firewall. (found it relevant when processing mosquitto) |
- Generic installer and start-stop-status scripts with logging - Service configuration generation for tcp port - User creation and run-as privilege file - Share folder creation with group permissions - Support for non service application package (non startable) - Target both DSM 5 and 6 - demoservice package as usage example Based on BenjV proposal SynoCommunity#2904
b02877f
to
abc88bf
Compare
When service protocol is not browsable, this switch allow to disable UI shortcut icon generation for service.
Thanks for this good team work... I think we are on the right path to get easier job with all these packages maintenance.
As a first example, I have published two PRs for Mosquitto package migration: #3025 (master) and #3028 (dsm6) |
@ymartin59 Thanks! |
No the right place for such a question. See #2904 (comment) |
Based on BenjV proposal #2904