47 Commits

Author SHA1 Message Date
Dominik Csapak
e18edb0efc fix wrong variable syntax
{$PACKAGE} expands to '{ACKAGE}', meaning we shipped a dir:
/usr/share/doc/{ACKAGE}/examples

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-06-09 14:00:21 +02:00
Wolfgang Link
a0a3cd4112 Make a new systemd target.
This will ensure all storages are up before pveproxy is running.
2017-05-03 11:50:53 +02:00
Fabian Grünbichler
8b89f7533e fix ceph.service for Ceph Jewel >= 10.2.6
having our ceph.service pulled in by ceph.target does not
work anymore, because "systemctl start ceph.target" hangs
forever on ceph-common upgrades. multi-user.target seems to
work as well, and we are ordered after pve-cluster anyway.

only replace the old ceph.service if it is an exact match.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2017-03-13 14:20:14 +01:00
Wolfgang Bumiller
17dc8f77f2 remove space in service file 2017-03-13 14:18:21 +01:00
Dietmar Maurer
b68bb37c6b rename pve.conf to ceph-after-pve-cluster.conf 2016-12-22 11:47:13 +01:00
Wolfgang Link
00b3a2c493 add systemd replacement for ceph init script
the old sys V init script does a lot of stuff, most of which
is already replaced with the system units since jewel,
except for the OSD activation which is still done by either
udev or the old init script.

include systemd service as drop in replacement for the init
script when using jewel. the service is not enabled by
default (as this would break hammer), but needs to be copied
to /etc/systemd/system on upgrade to (manual) or install of
jewel (automatic).

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2016-12-22 11:42:32 +01:00
Fabian Grünbichler
66abb41d7b add sheepdog and gluster to pveproxy.service
this ensures proper ordering for starting on boot and
stopping on shutdown.
2016-11-15 12:10:14 +01:00
Thomas Lamprecht
1ba0bf9cbc Makefile: fix distclean target
As some Makefiles in sub directories do not implement the distclean
target, namely:
PVE/Service/Makefile
PVE/CLI/Makefile

This target is broken.

As all other implementations just redirect to the 'clean' target I
do not implement the missing ones but rather remove all such
targets. Keep it just in the top level directory, for consistence
sake with other pve repos, and redirect it there directly to the
clean target.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2016-09-28 08:21:48 +02:00
Dietmar Maurer
6ec2e444d3 pveproxy.service: start after remote-fs and ceph 2016-01-22 11:24:20 +01:00
Dietmar Maurer
4345456e80 pve-manager.service: start after pve-ha-crm.service and pve-ha-lrm.service
To priorize HA VMs.
2016-01-22 11:24:19 +01:00
Dietmar Maurer
4d08ef1073 pve-manager.service: start after spiceproxy 2016-01-22 11:24:18 +01:00
Dietmar Maurer
ea5a773711 pveproxy.service: add Wants=ssh.service
and make sure sshd is running while pveproxy is active
2016-01-22 11:24:18 +01:00
Dietmar Maurer
4f345c2983 pve-manager.service: do not invoke old init.d script
redirect stdout/stderr to null, because we already log to pve task log.
2016-01-22 11:24:18 +01:00
Dietmar Maurer
ebd4ba37a9 pvesh: use PVE::SafeSyslog 2016-01-22 11:24:17 +01:00
Dietmar Maurer
9d040cd221 remove unused var 2016-01-22 11:24:16 +01:00
Dietmar Maurer
84898cc3f0 pvedaemon.service: Wants=corosync.service to fix shutdown order
To make sure /etc/pve/ is functional while pvedaemon is running.
2016-01-22 11:24:16 +01:00
Dietmar Maurer
a865b54877 pve-manager.service: add dependencies to fix shutdown order 2016-01-22 11:24:15 +01:00
Alexandre Derumier
1392869a2d pve-manager service : start after open-iscsi
Currently,if we have vms on lvm on top of iscsi,

pve-manager service start them too early at host boot,
before open-iscsi daemon, and vm don't start.

Reported-by: Philippe Guy <ph.guy@decidem.fr>
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2015-10-28 09:24:33 +01:00
Dietmar Maurer
c4580deff8 change pve-manager service type to oneshot 2015-06-10 09:04:59 +02:00
Dietmar Maurer
b3e184733b use Wants instead of Requires inside systemd service definitions
To avoid unnecessary restarts of dependent services.
2015-06-09 09:30:30 +02:00
Dietmar Maurer
8baed1ad7c add PIDFile option for systemd services 2015-03-04 07:06:14 +01:00
Dietmar Maurer
3c9f7ac986 avoid shell scripts in service definitions 2015-03-02 18:29:18 +01:00
Dietmar Maurer
2d2c2994c9 fix pvebanner and pvenetcommit service dependencies 2015-03-02 17:51:45 +01:00
Dietmar Maurer
ff9e8b7cb7 depend on systemd, add service files 2015-02-28 12:42:20 +01:00
Dietmar Maurer
8b0470b4e1 cleanup vzdump -stop implementation
* do not unlink $pidfile inside stop_running_backups to avoid race conditions
* use pve UPID to save pid (see PVE::Tools::upid_decode)
* allow to pass -stop parameter to nomal backup job
* simple return 'OK' instead of calling exit() inside API call.
* rename stop_all_backups to stop_running_backups
2015-01-20 09:35:01 +01:00
Wolfgang Link
e2d5a5c0a2 Fix backup failure at shutdown.
This fix include a new function of vzdump.
Now you can call vzdump -stop and the backup will be aborted.
Also if the pve-manager init script stop the process, vzdump -stop will called.

Signed-off-by: Wolfgang Link <wolfgang@linksystems.org>
2015-01-20 08:06:59 +01:00
Dietmar Maurer
5c173cc1df pvedaemon: use PVE::Daemon 2015-01-01 16:38:54 +01:00
Dietmar Maurer
fd2c4d2534 pveproxy: use PVE::Daemon 2015-01-01 16:19:41 +01:00
Dietmar Maurer
e1fb5ac851 spiceproxy: always restart unsing HUP
To keep existing spice connections alive.
2015-01-01 15:00:25 +01:00
Dietmar Maurer
bd1957bc8c spiceproxy: use PVE::Daemon 2014-12-20 09:44:13 +01:00
Dietmar Maurer
2927811f64 pvestatd: use new Daemon class from pve-common 2014-12-18 10:42:27 +01:00
Wolfgang Link
b583d6f7e7 Bug#579: add START parameter in /etc/default/pve-manager
add check if START Parameter is set in FILE: /etc/default/pve-manager
If START="no" NO VM will start if pve-manager start is called
If START!="no" or not present, VMs will use the boot_at_start Flag

Signed-off-by: Wolfgang Link <wolfgang@linksystems.org>
2014-11-18 08:06:24 +01:00
Dietmar Maurer
1329a45fc7 remove ovs database at boot time
We store our network config in /etc/network/interfaces instead.
2013-12-27 09:42:29 +01:00
Dietmar Maurer
3ffb722d3c reuse host based access control code for spiceproxy 2013-06-27 07:55:11 +02:00
Dietmar Maurer
9c1493d44a add spiceproxy server 2013-06-26 13:21:14 +02:00
Dietmar Maurer
81af31335e pveproxy: implement host based access control 2013-04-23 10:30:10 +02:00
Dietmar Maurer
e9c31a4e30 remove all references to apache2 2013-04-16 11:54:25 +02:00
Dietmar Maurer
28eeccf56d give more time for daemon stop/restart 2013-04-11 06:53:51 +02:00
Dietmar Maurer
4b73743aa9 run pveproxy as unpriviledged user (www-data)
We log to /var/log/pveproxy/access.log. Extra directory is needed because we run
as www-data (no permissions to write into /var/log/pve/).
2013-04-10 09:58:35 +02:00
Dietmar Maurer
eccbe1c5d8 remove apache2 dependency
And add init.d script for pveproxy.
2013-04-09 12:31:14 +02:00
Dietmar Maurer
d44735b0b3 pvebanner: overwrite /etc/issue instead of printing to stdout
That way be get the pve banner for all spanned getty.

We also create /etc/lsb-base-logging.sh and set FANCYTTY=0, because this
work better wit bootlogd (no control characters in /var/log/boot.
2013-03-25 09:01:59 +01:00
Dietmar Maurer
3e7adb30ea mark service vz optional in pve-manager init script
We do not depend on vzctl, so this is needed to avoid errors on install.
2013-03-22 06:18:46 +01:00
Dietmar Maurer
ab71c272cf add startall/stopall API and init script 2012-04-20 09:35:08 +02:00
Dietmar Maurer
7fc43a1cb9 start after clvmd, stop before clvmd 2011-09-21 12:22:29 +02:00
Dietmar Maurer
6a56c350de Fix startup order
Also depend on redhat-cluster-pve
2011-08-30 15:17:23 +02:00
Dietmar Maurer
c3731ed285 removed automake/autoconf, removed unused files 2011-08-23 16:11:04 +02:00
Dietmar Maurer
5910d3b7bd imported from svn 'pve-manager/pve2' 2011-08-23 07:40:22 +02:00