-
Notifications
You must be signed in to change notification settings - Fork 42
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
Make a systemd script #50
Comments
Check that we can read logs with journalctl |
[root@ldap-test-01 lsc]# systemctl cat lsc-main
# /etc/systemd/system/lsc-main.service
#
# Ansible managed
#
[Unit]
Description=Run LSC jobs | main
[Service]
Type=oneshot
ExecStart=/etc/lsc/run-main
User=lsc
Group=lsc
PrivateTmp=true
PrivateDevices=true
ProtectSystem=strict
ProtectKernelTunables=yes
ProtectControlGroups=yes
ReadWritePaths=/var/log/lsc
UMask=0007
[Install]
WantedBy=multi-user.target |
taking a look. |
I have proposed a systemd example in #230
Certainly not perfect because the admin still needs to adapt the synchronization options (-s, -c, -a) |
Solution to test: use the standard way to override a systemd service : https://askubuntu.com/questions/659267/how-do-i-override-or-configure-systemd-services |
…ervices and corresponding default files (#50)
I have added a new commit (6b9afd7) for:
lsc-oneshot -> lsc-sync with these new rules, it is easier to understand which task is intended to be launched with which default file. I have tested the new packages:
@xavierba : I have some new remarks:
|
As pointed out by @xavierba , we should take advantage of this issue to drop the support of init.d.
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 |
Ok for me |
systemd scripts seems ready in #260 What I have done since last review:
|
…) (#260) Co-authored-by: Xavier Bachelot <[email protected]>
I don't think this issue was proposed previously, so I post it here.
It was first proposed by [email protected] in the mailing list (2018-02-13 13:50 GMT+01:00)
Need to be tested.
The text was updated successfully, but these errors were encountered: