Commit Graph

45 Commits

Author SHA1 Message Date
Fabian Grünbichler
2bde88fb3f 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
16a264ce0c remove space in service file 2017-03-13 14:18:21 +01:00
Dietmar Maurer
cf41f67abf rename pve.conf to ceph-after-pve-cluster.conf 2016-12-22 11:47:13 +01:00
Wolfgang Link
b8fb9fb028 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
e6e4c4576d 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
8f46103543 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
623c4a1079 pveproxy.service: start after remote-fs and ceph 2016-01-22 11:24:20 +01:00
Dietmar Maurer
dd903b5fe5 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
ef6260a659 pve-manager.service: start after spiceproxy 2016-01-22 11:24:18 +01:00
Dietmar Maurer
df17e52e39 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
1767881b4a 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
1d9f1e8dbc pvesh: use PVE::SafeSyslog 2016-01-22 11:24:17 +01:00
Dietmar Maurer
69174606e4 remove unused var 2016-01-22 11:24:16 +01:00
Dietmar Maurer
e78e0cd733 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
02a1322de4 pve-manager.service: add dependencies to fix shutdown order 2016-01-22 11:24:15 +01:00
Alexandre Derumier
fc049c7e4f 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
f182f33646 change pve-manager service type to oneshot 2015-06-10 09:04:59 +02:00
Dietmar Maurer
f01a63ebff 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
196d369060 add PIDFile option for systemd services 2015-03-04 07:06:14 +01:00
Dietmar Maurer
32607384dc avoid shell scripts in service definitions 2015-03-02 18:29:18 +01:00
Dietmar Maurer
4144c9d249 fix pvebanner and pvenetcommit service dependencies 2015-03-02 17:51:45 +01:00
Dietmar Maurer
6675a0648f depend on systemd, add service files 2015-02-28 12:42:20 +01:00
Dietmar Maurer
eab837c4c4 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
8682f6fcb1 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
6669b51cd2 pvedaemon: use PVE::Daemon 2015-01-01 16:38:54 +01:00
Dietmar Maurer
2560c968d1 pveproxy: use PVE::Daemon 2015-01-01 16:19:41 +01:00
Dietmar Maurer
471ddcf91e spiceproxy: always restart unsing HUP
To keep existing spice connections alive.
2015-01-01 15:00:25 +01:00
Dietmar Maurer
393716a3bf spiceproxy: use PVE::Daemon 2014-12-20 09:44:13 +01:00
Dietmar Maurer
891d124227 pvestatd: use new Daemon class from pve-common 2014-12-18 10:42:27 +01:00
Wolfgang Link
18cc143063 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
670804cbdc 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
17d27a3748 reuse host based access control code for spiceproxy 2013-06-27 07:55:11 +02:00
Dietmar Maurer
33afb29b29 add spiceproxy server 2013-06-26 13:21:14 +02:00
Dietmar Maurer
a908636e70 pveproxy: implement host based access control 2013-04-23 10:30:10 +02:00
Dietmar Maurer
7a05d783d8 remove all references to apache2 2013-04-16 11:54:25 +02:00
Dietmar Maurer
48c658a41c give more time for daemon stop/restart 2013-04-11 06:53:51 +02:00
Dietmar Maurer
3dad8dc716 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
0c308a030e remove apache2 dependency
And add init.d script for pveproxy.
2013-04-09 12:31:14 +02:00
Dietmar Maurer
9003d6e339 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
520fa3376d 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
b92400b6a7 add startall/stopall API and init script 2012-04-20 09:35:08 +02:00
Dietmar Maurer
08b86ef3d7 start after clvmd, stop before clvmd 2011-09-21 12:22:29 +02:00
Dietmar Maurer
004dc4cd3e Fix startup order
Also depend on redhat-cluster-pve
2011-08-30 15:17:23 +02:00
Dietmar Maurer
beb651ee65 removed automake/autoconf, removed unused files 2011-08-23 16:11:04 +02:00
Dietmar Maurer
aff192e6f5 imported from svn 'pve-manager/pve2' 2011-08-23 07:40:22 +02:00