Skip to content
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

Linux: Systemd unit improvements #247

Open
wants to merge 14 commits into
base: master
Choose a base branch
from

Conversation

Thaodan
Copy link

@Thaodan Thaodan commented Oct 27, 2022

Several improvements to the systemd units like increased security, simplicity,
user service and system service template unit.

@Thaodan Thaodan force-pushed the systemd_units_improvements branch 7 times, most recently from 8ae9103 to c508af8 Compare October 28, 2022 12:13
@mguessan
Copy link
Owner

That's a lot of changes, need to investigate and learn more recent stuff around systemd

@Thaodan
Copy link
Author

Thaodan commented May 11, 2023

Can you check again?

Fixes: 75f2f87
Signed-off-by: Björn Bidar <bjorn.bidar@thaodan.de>
Formated as per:
https://en.opensuse.org/openSUSE:Creating_a_changes_file_(RPM)

Changelog will be appended as needed by the obs.

Fixes: 75f2f87
Signed-off-by: Björn Bidar <bjorn.bidar@thaodan.de>
@Thaodan Thaodan force-pushed the systemd_units_improvements branch 19 times, most recently from bc119a9 to 4c29793 Compare May 11, 2023 21:49
@Thaodan Thaodan force-pushed the systemd_units_improvements branch from 4c29793 to e089b98 Compare May 11, 2023 22:08
Thaodan added 10 commits May 12, 2023 01:10
Fixes  E: superfluous-%clean-section:
The spec section %clean should not be used any longer. RPM provides its own
clean logic.

Signed-off-by: Björn Bidar <bjorn.bidar@thaodan.de>
Fixes: W: name-repeated-in-summary DavMail

Signed-off-by: Björn Bidar <bjorn.bidar@thaodan.de>
Signed-off-by: Björn Bidar <bjorn.bidar@thaodan.de>
This unit allows running Davmail in the systemd --user instance.
Loosely based on the already existing systemd unit and Arch's
systemd-user unit.

Re: https://aur.archlinux.org/cgit/aur.git/tree/davmail@.user_service?h=davmail
Signed-off-by: Björn Bidar <bjorn.bidar@thaodan.de>
Instead of creating the file manually each time the service is
started.

Signed-off-by: Björn Bidar <bjorn.bidar@thaodan.de>
Signed-off-by: Björn Bidar <bjorn.bidar@thaodan.de>
Signed-off-by: Björn Bidar <bjorn.bidar@thaodan.de>
Signed-off-by: Björn Bidar <bjorn.bidar@thaodan.de>
Signed-off-by: Björn Bidar <bjorn.bidar@thaodan.de>
Read: man 5 systemd.exec

Signed-off-by: Björn Bidar <bjorn.bidar@thaodan.de>
@Thaodan Thaodan force-pushed the systemd_units_improvements branch 2 times, most recently from 9bdda43 to 6e53b11 Compare May 11, 2023 22:30
The davmail script in src/bin is used everywhere no mention of
davmail-wrapper.
Also the script was installed into an invalid path.

Signed-off-by: Björn Bidar <bjorn.bidar@thaodan.de>
Ensures that systemd is installed before davmail so %post etc work.
Solves:
/var/tmp/rpm-tmp.HZLayD: line 15: /usr/bin/systemd-tmpfiles: No such
file or directory

Or similar.

Signed-off-by: Björn Bidar <bjorn.bidar@thaodan.de>
@Thaodan Thaodan force-pushed the systemd_units_improvements branch from 6e53b11 to 64491ae Compare May 11, 2023 22:30
@coderkun
Copy link

coderkun commented Apr 6, 2024

Why does the user service use the template parameter? I will always be executed under the user who starts the service (that is what systemctl --user is for.

@Thaodan
Copy link
Author

Thaodan commented Apr 6, 2024

For example multiple instances of davmail per account.
E.g. on work another for personal use.

@coderkun
Copy link

coderkun commented Apr 7, 2024

Fair enough 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants