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

InaccessiblePaths=/run /var makes systemd service not start on Raspberry pi #53

Open
flyhard opened this issue Dec 2, 2020 · 1 comment · May be fixed by #69
Open

InaccessiblePaths=/run /var makes systemd service not start on Raspberry pi #53

flyhard opened this issue Dec 2, 2020 · 1 comment · May be fixed by #69

Comments

@flyhard
Copy link

flyhard commented Dec 2, 2020

I have used the provided systemd script, and go the error

● endlessh.service - Endlessh SSH Tarpit
   Loaded: loaded (/etc/systemd/system/endlessh.service; disabled; vendor preset: enabled)
   Active: activating (auto-restart) (Result: exit-code) since Wed 2020-12-02 21:20:58 CET; 4s ago
     Docs: man:endlessh(1)
  Process: 21332 ExecStart=/usr/local/bin/endlessh (code=exited, status=226/NAMESPACE)
 Main PID: 21332 (code=exited, status=226/NAMESPACE)

Dec 02 21:20:58 raspi systemd[1]: endlessh.service: Failed with result 'exit-code'.

when I changed the line InaccessiblePaths=/run /var to InaccessiblePaths=/run it worked OK.

Not sure if this is a bug or just weird behaviour in raspberry pi.

I was using a build based on the 1.1 tag.

ayekyk added a commit to ayekyk/endlessh that referenced this issue Jun 2, 2021
@ayekyk ayekyk linked a pull request Jun 2, 2021 that will close this issue
gentoo-bot pushed a commit to gentoo/gentoo that referenced this issue Dec 24, 2021
Bug: skeeto/endlessh#53
Signed-off-by: Mike Gilbert <floppym@gentoo.org>
@Staubgeborener
Copy link

In order to get rid of this issue, I had to comment the following line in /etc/systemd/system/endlessh.service :
#InaccessiblePaths=/run /var
and reload the daemon afterwards:
sudo systemctl daemon-reload && sudo systemctl restart endlessh.service

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 a pull request may close this issue.

2 participants