From: Aleksey Cheusov <vle@gmx.net>
To: community@lists.altlinux.org
Subject: [Comm] запуск openvpn на старте alt p10
Date: Sat, 26 Nov 2022 17:37:41 +0400
Message-ID: <m3mt8domze.fsf@ryzen.chizhovka.net> (raw)
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 ~]#
next reply other threads:[~2022-11-26 13:37 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-26 13:37 Aleksey Cheusov [this message]
2022-11-26 14:34 ` Alexei V. Mezin
2022-11-26 14:46 ` Aleksey Cheusov
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m3mt8domze.fsf@ryzen.chizhovka.net \
--to=vle@gmx.net \
--cc=community@lists.altlinux.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
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