Yep, systemd does not allow extra params on init.d scripts calls.

How about the systemd way?
systemctl start openvpn@$CUSTOMER
:-)



On 15 November 2014 12:21:13 CET, Wouter Verhelst <[email protected]> wrote:
>Package: openvpn
>Version: 2.3.4-3
>Severity: important
>
>Hi,
>
>On one of my systems, I have a number of configurations for OpenVPN
>connections to some of my customers. Since I don't need to connect to
>these customers all the time, I have disabled the automatic starting of
>those connections using the AUTOSTART variable in /etc/default/openvpn,
>and would start the connection to the customer in question by way of
>the
>init script ("/etc/init.d/openvpn start $CUSTOMER").
>
>I have recently switched that system to systemd, however, and now this
>no longer works. It appears that the second argument to the "start"
>call
>of the init script is not passed on to systemctl; as a result, due to
>the AUTOSTART=none line, nothing is started and I have to manually
>start
>OpenVPN.
>
>Bumping this to "important", since systemd is supposed to be the
>default
>for jessie.
>
>-- System Information:
>Debian Release: jessie/sid
>  APT prefers unstable
>APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (500,
>'oldstable'), (1, 'experimental')
>Architecture: amd64 (x86_64)
>Foreign Architectures: i386
>
>Kernel: Linux 3.16.0-4-amd64 (SMP w/4 CPU cores)
>Locale: LANG=nl_BE.UTF-8, LC_CTYPE=nl_BE.UTF-8 (charmap=UTF-8)
>Shell: /bin/sh linked to /bin/dash
>
>Versions of packages openvpn depends on:
>ii  debconf [debconf-2.0]  1.5.53
>ii  initscripts            2.88dsf-57
>ii  iproute2               3.16.0-2
>ii  libc6                  2.19-13
>ii  liblzo2-2              2.08-1
>ii  libpam0g               1.1.8-3.1
>ii  libpkcs11-helper1      1.11-2
>ii  libssl1.0.0            1.0.1j-1
>
>Versions of packages openvpn recommends:
>ii  easy-rsa  2.2.2-1
>
>Versions of packages openvpn suggests:
>ii  openresolv [resolvconf]  3.5.2-1
>ii  openssl                  1.0.1j-1
>
>-- Configuration Files:
>/etc/default/openvpn changed:
>AUTOSTART="none"
>OPTARGS=""
>
>
>-- debconf information:
>  openvpn/create_tun: false

-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.

Reply via email to