Всем привет!
Не могу запустить второй экземпляр pptpd на Debian 8. Скопировал /etc/init.d/pptpd в pptp2 внес изменения:
PATH=/sbin:/usr/sbin:/bin:/usr/bin
DESC='PoPToP Point to Point Tunneling Server copy'
NAME=pptpd2
DAEMON="/usr/sbin/pptpd"
DAEMON_OPTS=''
PIDFILE='/var/run/pptpd2.pid'
SCRIPTNAME="/etc/init.d/$NAME"
[Unit]
Description=PoPToP Point to Point Tunneling Server copy
After=network.target
[Service]
EnvironmentFile=-/etc/default/pptpd2
# don't daemonize to simplify stuff
ExecStart=/usr/sbin/pptpd --fg $DAEMON_OPTS
KillMode=process
[Install]
WantedBy=multi-user.target
Стартую сервис, такая картина:
● pptpd2.service - PoPToP Point to Point Tunneling Server copy
Loaded: loaded (/lib/systemd/system/pptpd2.service; disabled)
Active: failed (Result: exit-code) since Вт 2018-03-13 12:26:33 MSK; 1h 10min ago
Process: 8827 ExecStart=/usr/sbin/pptpd --fg $DAEMON_OPTS (code=exited, status=255)
Main PID: 8827 (code=exited, status=255)
мар 13 12:26:33 proxy-squid systemd[1]: Starting PoPToP Point to Point Tunneling Server copy...
мар 13 12:26:33 proxy-squid systemd[1]: Started PoPToP Point to Point Tunneling Server copy.
мар 13 12:26:33 proxy-squid pptpd[8827]: MGR: Maximum of 100 connections reduced to 51, not enough IP addresses given
мар 13 12:26:33 proxy-squid pptpd[8827]: MGR: Manager process started
мар 13 12:26:33 proxy-squid pptpd[8827]: MGR: Maximum of 51 connections available
мар 13 12:26:33 proxy-squid pptpd[8827]: MGR: Couldn't create host socket
мар 13 12:26:33 proxy-squid pptpd[8827]: createHostSocket: Address already in use
мар 13 12:26:33 proxy-squid systemd[1]: pptpd2.service: main process exited, code=exited, status=255/n/a
мар 13 12:26:33 proxy-squid systemd[1]: Unit pptpd2.service entered failed state.