ALT Linux Community general discussions
 help / color / mirror / Atom feed
* [Comm] запуск openvpn на старте alt p10
@ 2022-11-26 13:37 Aleksey Cheusov
  2022-11-26 14:34 ` Alexei V. Mezin
  0 siblings, 1 reply; 10+ messages in thread
From: Aleksey Cheusov @ 2022-11-26 13:37 UTC (permalink / raw)
  To: community

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 ~]# 

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2022-12-01  7:13 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-26 13:37 [Comm] запуск openvpn на старте alt p10 Aleksey Cheusov
2022-11-26 14:34 ` Alexei V. Mezin
2022-11-26 14:42     ` Alexei V. Mezin
2022-11-29 11:12       ` Sergey
2022-11-29 17:30         ` Alexei Mezin
2022-12-01  6:42           ` Sergey
2022-12-01  7:13           ` Sergey
2022-11-26 14:56     ` Aleksey Cheusov
2022-11-28  6:23       ` Anton Farygin
2022-11-26 14:46   ` Aleksey Cheusov

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git