ALT Linux sysadmins discussion
 help / color / mirror / Atom feed
From: "admin931@rambler.ru" <admin931@rambler.ru>
To: sysadmins@lists.altlinux.org
Subject: [Sysadmins] openvpn и pptp вешают другие сервисы
Date: Mon, 18 May 2009 10:57:16 +0400
Message-ID: <4A1106CC.9080206@rambler.ru> (raw)

ситуация следующая:
во время старта серверов openvpn и/или pptp
они переходят в ожидание подключений, во время которого другие службы не 
стартуют.
вопрос как заставить их стартовать в фоновом режиме

вот скрипт запуска openvpn:
#!/bin/sh
##!/bin/bash

# Startup file for OpenVPN

# Load tun module
/sbin/modprobe tun >/dev/null 2>&1
#sleep 1s

#!/bin/sh
openvpn --config /etc/openvpn/server.conf
case "$1" in
start)
echo -n "OpenVPN2 Starting... "
/usr/sbin/openvpn || exit 1
;;
stop)
echo -n "Shutting down OpenVPN2... "
/usr/bin/killall openvpn &>/dev/null || exit 1
;;
reload|restart)
$0 stop && sleep 1 && $0 start || exit 1
;;
*)
echo "Usage: $0 {start|stop|reload|restart}"
exit 1
esac

exit 0




             reply	other threads:[~2009-05-18  6:57 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-18  6:57 admin931 [this message]
2009-05-18  8:17 ` Владимир Кутявин
2009-05-18  9:57   ` admin931
2009-05-18 11:00     ` Владимир Кутявин
2009-05-18 15:31 ` Nikolay A. Fetisov

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=4A1106CC.9080206@rambler.ru \
    --to=admin931@rambler.ru \
    --cc=sysadmins@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 sysadmins discussion

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sysadmins/0 sysadmins/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 sysadmins sysadmins/ http://lore.altlinux.org/sysadmins \
		sysadmins@lists.altlinux.org sysadmins@lists.altlinux.ru sysadmins@lists.altlinux.com
	public-inbox-index sysadmins

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


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