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

daemon-reload not required #76

Open
arch-user-france1 opened this issue May 29, 2022 · 8 comments
Open

daemon-reload not required #76

arch-user-france1 opened this issue May 29, 2022 · 8 comments
Assignees
Labels
bug TYPE: a report on something that isn't working

Comments

@arch-user-france1
Copy link

What is the bug / inaccuracy?:
Installing on Linux => Arch Linux

The doc:

# Clone the repository
git clone https://github.com/safing/portmaster-packaging

# Enter the repo and build/install the package (it's under linux/)
cd portmaster-packaging/linux
makepkg -is

# Start the Portmaster and enable autostart
sudo systemctl daemon-reload
sudo systemctl enable --now portmaster

The systemctl daemon-reload is not required.
What would you expect instead?:
The doc should be like that:

...
# Start the Portmaster and enable autostart
sudo systemctl enable --now portmaster
@arch-user-france1 arch-user-france1 added the bug TYPE: a report on something that isn't working label May 29, 2022
@ghost
Copy link

ghost commented Jun 2, 2022

Thanks for reporting. Just curious to learn - why is systemctl daemon-reload not required?

@arch-user-france1
Copy link
Author

arch-user-france1 commented Jun 2, 2022

I think it is only required if a service file is edited but not when it's created. I might be wrong tho...
I'm not a systemd specialist either... So I know that it is but I don't know why it is.

@arch-user-france1
Copy link
Author

And I of course made sure that I tried it without running systemctl daemon-reload and it worked so it should be safe-to-remove.

@dhaavi
Copy link
Member

dhaavi commented Jun 2, 2022

It seems that daemon-reload is only needed in some cases: https://man.archlinux.org/man/systemctl.1#Unit_File_Commands

@arch-user-france1
Copy link
Author

arch-user-france1 commented Jun 3, 2022

It seems that daemon-reload is only needed in some cases: https://man.archlinux.org/man/systemctl.1#Unit_File_Commands

Yes because it reloads configurations in case of edits but it makes no sence to execute if there's a new configuration file. It's like purging a cache I guess. So it is definitely not required. Should be removed out of the manual, it's not serious to release a bloated manual.

Do you agree with removing out of the manual? It is clear that in case of Arch a reload is not required (tested with Arch) and systemd is always the same.

@ppacher
Copy link
Contributor

ppacher commented Jun 3, 2022

Hi,

Thats totally true, daemon-reload is not required for first-time installs but in case a user does an update it needs to be done. Updates of the package are required from time to time as the unit file ist not managed by portmaster and thus does not update automatically. In order to avoid a dedicated section on "how to update the didtro package" daemon-reload is part of the common install section. Also, it should not do any harm (users that mangle with their unit files are expected to already know what they are doing). So IMHO this should be kept as it is.

I'm on my phone (with a broken display) right now so please ignore any typing errors^^

@arch-user-france1
Copy link
Author

Hi,

Thats totally true, daemon-reload is not required for first-time installs but in case a user does an update it needs to be done. Updates of the package are required from time to time as the unit file ist not managed by portmaster and thus does not update automatically. In order to avoid a dedicated section on "how to update the didtro package" daemon-reload is part of the common install section. Also, it should not do any harm (users that mangle with their unit files are expected to already know what they are doing). So IMHO this should be kept as it is.

I'm on my phone (with a broken display) right now so please ignore any typing errors^^

Is a daemon-reload required even after a restart of the device?

@ppacher
Copy link
Contributor

ppacher commented Jun 21, 2022

Hi, no a restart of the device makes daemon-reload a no-op because systemd does scan the service files on start anyway.

@ghost ghost assigned ppacher and ghost Sep 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug TYPE: a report on something that isn't working
Projects
None yet
Development

No branches or pull requests

3 participants