Skip to content

update systemd service file#310

Closed
deathtrip wants to merge 1 commit intoevilsocket:masterfrom
deathtrip:patch-1
Closed

update systemd service file#310
deathtrip wants to merge 1 commit intoevilsocket:masterfrom
deathtrip:patch-1

Conversation

@deathtrip
Copy link
Contributor

It's better to let directory creation be handled by packaging, instead of executing it on every daemon start. On Arch Linux for example, that directory is already contained in the package.
When that line is removed PermissionsStartOnly=true can go as well, it's deprecated anyway.

It's better to let directory creation be handled by packaging, instead of executing it on every daemon start. On Arch Linux that directory is already contained in the package.
When that line is removed `PermissionsStartOnly=true` can go as well, it's [deprecated](systemd/systemd#10802) anyway.
@tianon
Copy link

tianon commented Dec 21, 2020

FWIW, this should be doable in Debian packaging too most easily/directly via debian/<package>.dirs: https://manpages.debian.org/buster/debhelper/dh_installdirs.1.en.html

(I had a similar "huh, that's interesting" moment while reviewing this service file recently 😄)

@gustavo-iniguez-goya
Copy link
Collaborator

The PR can not be accepted as is, because we'd break non-arch installations.

I think that this task should be done from the daemon, otherwise we'll depend on the service manager used by the distro (systemd, sysv, s6, openrc, etc, etc)

@deathtrip
Copy link
Contributor Author

I don't think removing these lines would break opensnitch. As right now on non-systemd distros, the rules directory still has to be created some other way.

@deathtrip
Copy link
Contributor Author

As it's superseded by #1019, i'm gonna close this one.

@deathtrip deathtrip closed this Aug 19, 2024
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.

3 participants