Koozali.org: home of the SME Server
Contribs.org Forums => Koozali SME Server 10.x => Topic started by: mauro on August 02, 2021, 10:50:44 AM
-
I have two systemd units and I want to make SME10 aware of them.
It's a service and the relative timer, i.e. myunit.service and myunit.timer .
I understand I need to create a db entry like
db configuration set myunit service status enabledbut what's the correct syntax for the timer?
-
You'll need Jean Philippe to answer this.
It is not as simple as just adding a config key.
Some of it is documented but I think more is required.
Start here, and check locally for presets etc to compare.
https://wiki.koozali.org/SME10_serviceControl
-
timer are not supported, nor socket… only dot service files
please rather use cron, or you are on your own to have it working.
you need to create the entry in config db as you mentioned and you need to make it WantedBy= sme-server.target.
To do that you need to create a folder /etc/systemd/system/servicename.service.d
and add a file in it 51custom.conf with content:
[Install]
WantedBy= sme-server.target
if you were to do a contrib you would create the dot d folder in /usr/lib/systemd/system
-
Thank you, i'll revert to the good old cron.