FS#39592 - [dante] When dante fork to other users, it can not started by systemd
Attached to Project:
Community Packages
Opened by Sheng Yu (magicfish1990) - Saturday, 22 March 2014, 20:32 GMT
Last edited by Sergej Pupykin (sergej) - Monday, 24 March 2014, 07:53 GMT
Opened by Sheng Yu (magicfish1990) - Saturday, 22 March 2014, 20:32 GMT
Last edited by Sergej Pupykin (sergej) - Monday, 24 March 2014, 07:53 GMT
|
Details
Description:
When dante fork to other users, it can not started by systemd. Forked process no permission to write PID file, so systemd think it was failed. Let it run as root maybe have some security risks. Additional info: * package version(s) community/dante 1.4.0-1 * config and/or log files etc. in /etc/sockd.conf enable user.unprivileged: proxy log: sockd[6040]: warning: open(/var/run/sockd.pid): Permission denied systemd[1]: PID file /run/sockd.pid not readable (yet?) after start. sockd[6040]: info: Dante/server[1/1] v1.4.0 running systemd[1]: sockd.service start operation timed out. Terminating. systemd[1]: Failed to start SOCKS v4 and v5 compatible proxy server and client. Steps to reproduce: systemctl start sockd |
This task depends upon
Comment by
Sheng Yu (magicfish1990) - Saturday,
22 March 2014, 20:36 GMT
sorry, config is enable user.privileged: proxy
Comment by Sergej Pupykin (sergej) -
Monday, 24 March 2014, 07:53 GMT
I've moved pid to /run/dante/ by default. Probably you will need
to adjust tmpfiles.d and .service.