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

systemd service and child processes #6

Open
exeral opened this issue Oct 5, 2022 · 0 comments
Open

systemd service and child processes #6

exeral opened this issue Oct 5, 2022 · 0 comments

Comments

@exeral
Copy link

exeral commented Oct 5, 2022

Hello,

I am using the provided examples/obfs4proxy-openvpn.service.sample
It works well for starting the service.

however I have issues when stopping:

ps wauxf before stopping the service

root      84359  0.0  0.0 115908  2312 ?        Ss   15:28   0:00 bash /usr/local/sbin/obfs4proxy-openvpn
root      84380  0.0  0.0 116172  1432 ?        S    15:28   0:00  \_ bash /usr/local/sbin/obfs4proxy-openvpn
root      84383  0.0  0.0 243384  4640 ?        S    15:28   0:00  |   \_ sudo -u obfs4-ovpn -g obfs4-ovpn /usr/bin/env TOR_PT_MANAGED_TRANSPORT_VER=1 TOR_PT_STATE_LOCATION=/var/lib/obfs4proxy-openvpn/obfs4/ TOR_PT_CLIENT_TRANSPORTS=obfs
obfs4-o+  84386  4.7  0.2 988252 18184 ?        Sl   15:28   6:01  |       \_ /usr/local/bin/obfs4proxy -enableLogging -logLevel ERROR
nobody    84433  3.7  0.0  77172  3744 ?        S    15:28   4:45  \_ openvpn --config /etc/openvpn/openvpn_client.conf.obfs4 --proto tcp-client --socks-proxy 127.0.0.1 38442 /var/lib/obfs4proxy-openvpn/socks5_auth

systemctl status before stopping the service

 Main PID: 84359 (bash)
   CGroup: /system.slice/obfs4proxy-openvpn.service
           ├─84359 bash /usr/local/sbin/obfs4proxy-openvpn
           ├─84380 bash /usr/local/sbin/obfs4proxy-openvpn
           └─84433 openvpn --config /etc/openvpn/openvpn_client.conf.obfs4 --proto tcp-client --socks-proxy 127.0.0.1 38442 /var/lib/obfs4proxy-openvpn/socks5_auth

remaining processes after stopping the service

root      84383  0.0  0.0 243384  4640 ?        S    15:28   0:00 sudo -u obfs4-ovpn -g obfs4-ovpn /usr/bin/env TOR_PT_MANAGED_TRANSPORT_VER=1 TOR_PT_STATE_LOCATION=/var/lib/obfs4proxy-openvpn/obfs4/ TOR_PT_CLIENT_TRANSPORTS=obfs4 /usr/l
obfs4-o+  84386  4.7  0.2 988252 18184 ?        Sl   15:28   6:09  \_ /usr/local/bin/obfs4proxy -enableLogging -logLevel ERROR

I have to manually kill them.

systemd is not able to recognize 84383 and 84386 as childs of the service

CentOS Linux release 7.8.2003 (Core)
systemd version 219

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

No branches or pull requests

1 participant