[Comm] запуск openvpn на старте alt p10

Aleksey Cheusov vle на gmx.net
Сб Ноя 26 16:37:41 MSK 2022


Openvpn не запускается автоматически на старте системы.
Запускается только ручным запуском

   /etc/init.d/openvpn start

Вопросы:
* Что я делаю не так?
* Как заставить openvpn стартовать автоматически?
* Каков статус systemd в altlinux? Не то, чтобы мне он был мне очень
нужен, но тем не менее.
* Почему после "chconfig ... on" команда "chkconfig status"
  все равно не показыввет openvpn?




[root на ryzen ~]# systemctl status openvpn
* openvpn.service - OpenVPN daemons
     Loaded: loaded (/lib/systemd/system/openvpn.service; enabled; vendor preset: disabled)
     Active: active (exited) since Fri 2022-11-25 13:51:33 +04; 1 day 3h ago
       Docs: man:openvpn(8)
             https://community.openvpn.net/openvpn/wiki/Openvpn24ManPage
             https://community.openvpn.net/openvpn/wiki/HOWTO
   Main PID: 3959 (code=exited, status=0/SUCCESS)
        CPU: 6ms

Nov 25 13:51:32 ryzen.chizhovka.net systemd[1]: Starting OpenVPN daemons...
Nov 25 13:51:33 ryzen.chizhovka.net systemd[1]: Finished OpenVPN daemons.
[root на ryzen ~]# systemctl start openvpn
[root на ryzen ~]# pidof openvpn
[root на ryzen ~]# systemctl status openvpn
* openvpn.service - OpenVPN daemons
     Loaded: loaded (/lib/systemd/system/openvpn.service; enabled; vendor preset: disabled)
     Active: active (exited) since Fri 2022-11-25 13:51:33 +04; 1 day 3h ago
       Docs: man:openvpn(8)
             https://community.openvpn.net/openvpn/wiki/Openvpn24ManPage
             https://community.openvpn.net/openvpn/wiki/HOWTO
   Main PID: 3959 (code=exited, status=0/SUCCESS)
        CPU: 6ms

Nov 25 13:51:32 ryzen.chizhovka.net systemd[1]: Starting OpenVPN daemons...
Nov 25 13:51:33 ryzen.chizhovka.net systemd[1]: Finished OpenVPN daemons.
[root на ryzen ~]# chkconfig

Note: This output shows SysV services only and does not include native
      systemd services. SysV configuration data might be overridden by native
      systemd configuration.

apcupsd        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
ntpd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
[root на ryzen ~]# chkconfig --level 23 openvpn on
[root на ryzen ~]# chkconfig

Note: This output shows SysV services only and does not include native
      systemd services. SysV configuration data might be overridden by native
      systemd configuration.

apcupsd        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
ntpd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
[root на ryzen ~]# service openvpn status
active
[root на ryzen ~]# /etc/init.d/openvpn status
Service openvpn is not running.
[root на ryzen ~]# /etc/init.d/openvpn start
Adjusting environment for openvpn:                                                          [ DONE ]
Starting openvpn service:                                                                   [ DONE ]
[root на ryzen ~]# /etc/init.d/openvpn status
openvpn is running
[root на ryzen ~]# systemctl status openvpn
* openvpn.service - OpenVPN daemons
     Loaded: loaded (/lib/systemd/system/openvpn.service; enabled; vendor preset: disabled)
     Active: active (exited) since Fri 2022-11-25 13:51:33 +04; 1 day 3h ago
       Docs: man:openvpn(8)
             https://community.openvpn.net/openvpn/wiki/Openvpn24ManPage
             https://community.openvpn.net/openvpn/wiki/HOWTO
   Main PID: 3959 (code=exited, status=0/SUCCESS)
        CPU: 6ms

Nov 25 13:51:32 ryzen.chizhovka.net systemd[1]: Starting OpenVPN daemons...
Nov 25 13:51:33 ryzen.chizhovka.net systemd[1]: Finished OpenVPN daemons.
[root на ryzen ~]# 


Подробная информация о списке рассылки community