endlessh icon indicating copy to clipboard operation
endlessh copied to clipboard

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

Open flyhard opened this issue 5 years ago • 1 comments

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.

flyhard avatar Dec 02 '20 20:12 flyhard

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

Staubgeborener avatar Jan 06 '22 15:01 Staubgeborener