You can use strace on a specific pid to figure out what a specific process is doing, e.g.:
strace -fp <pid>
You might see something like:
select(9, [3 5 8], [], [], {0, 999999}) = 0 (Timeout)
# PHP Extensions available for PHP 5.3.X | |
php_extensions: | |
- amqp | |
- apc | |
- apm | |
- bcmath | |
- bcompiler | |
- bz2 | |
- calendar | |
- ctype |
#!/bin/bash | |
apt-get update | |
apt-get install pptpd -y | |
echo localip 192.168.240.1 >> /etc/pptpd.conf | |
echo remoteip 192.168.240.2-9 >> /etc/pptpd.conf | |
echo ms-dns 8.8.8.8 >> /etc/ppp/pptpd-options | |
echo ms-dns 8.8.4.4 >> /etc/ppp/pptpd-options | |
echo "vpn pptpd pass123 *" | tee -a /etc/ppp/chap-secrets | |
/etc/init.d/pptpd restart |