lsc-project / lsc

LSC engine
http://lsc-project.org/wiki/documentation/latest/start
Other
108 stars 41 forks source link

Add a systemd script (#50) #260

Closed davidcoutadeur closed 8 months ago

davidcoutadeur commented 8 months ago

Fixes #50

davidcoutadeur commented 8 months ago

This PR only takes care about adding the systemd files. Integration in debian / red-hat will be done elsewhere.

davidcoutadeur commented 8 months ago

On more point to check in this PR: describe the way to duplicate the sync/async systemd script to have more than one task. Possible leads:

We need to clarify this in documentation, and also define if admins should use /etc/default for LSC_CONFIG_DIR, LSC_SYNC_TASKS,...

davidcoutadeur commented 8 months ago

On more point to check in this PR: describe the way to duplicate the sync/async systemd script to have more than one task. Possible leads:

* overload systemd script (systemctl edit)

* use systemd instances

We need to clarify this in documentation, and also define if admins should use /etc/default for LSC_CONFIG_DIR, LSC_SYNC_TASKS,...

We can only pass one parameter to a systemd instance.

But admins can still use systemd instances for defining the path to /etc/default/lsc to load.

davidcoutadeur commented 8 months ago

I have provided an example of systemd instance in 527a318c

Not tested yet, but it should do the job. @xavierba if you have any remark? @coudot don't hesistate if you have an opinion on this topic.

davidcoutadeur commented 8 months ago

As pointed out by @xavierba , we should take advantage of this issue to drop the support of init.d. I am favourable for doing so, because systemd is now the default component:

Anyway, we no longer support lsc packages for OS older that these.

If everyone is ok with that, I am going to remove init.d in #260

davidcoutadeur commented 8 months ago

systemd scripts seems ready in #260 I am going to merge.

What I have done since last review: