xen: preserve xendomains script; update systemd services with new path.

This commit is contained in:
Juan RP 2013-06-04 17:32:55 +02:00
parent e65e2d93eb
commit 0c1a7ec882
4 changed files with 6 additions and 4 deletions

View file

@ -12,7 +12,7 @@ Environment=XENCONSOLED_LOG_DIR=/var/log/xen/console
EnvironmentFile=-/etc/conf.d/xenconsoled
PIDFile=/var/run/xenconsoled.pid
ExecStartPre=/usr/bin/grep -q control_d /proc/xen/capabilities
ExecStart=/usr/sbin/xenconsoled --log=${XENCONSOLED_LOG} --log-dir=${XENCONSOLED_LOG_DIR} $XENCONSOLED_ARGS
ExecStart=/usr/bin/xenconsoled --log=${XENCONSOLED_LOG} --log-dir=${XENCONSOLED_LOG_DIR} $XENCONSOLED_ARGS
[Install]
WantedBy=multi-user.target

View file

@ -5,8 +5,8 @@ Requires=xenstored.service
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/sbin/xl create /etc/xen/conf/%i.cfg
ExecStop=/usr/sbin/xl shutdown %i
ExecStart=/usr/bin/xl create /etc/xen/conf/%i.cfg
ExecStop=/usr/bin/xl shutdown %i
[Install]
WantedBy=multi-user.target

View file

@ -12,7 +12,7 @@ Environment=XENSTORED_ARGS=
EnvironmentFile=-/etc/conf.d/xenstored
PIDFile=/var/run/xenstored.pid
ExecStartPre=/usr/bin/grep -q control_d /proc/xen/capabilities
ExecStart=/usr/sbin/xenstored --pid-file /var/run/xenstored.pid $XENSTORED_ARGS
ExecStart=/usr/bin/xenstored --pid-file /var/run/xenstored.pid $XENSTORED_ARGS
ExecStartPost=/usr/bin/xenstore-write "/local/domain/0/name" "Domain-0"
[Install]

View file

@ -55,6 +55,8 @@ do_install() {
mv ${DESTDIR}/etc/xen/x*example* ${DESTDIR}/usr/share/examples/xen
mv ${DESTDIR}/etc/xen/cpupool ${DESTDIR}/usr/share/examples/xen
mv ${DESTDIR}/etc/init.d/xendomains ${DESTDIR}/etc/xen/scripts
# Remove useless stuff.
rm -rf ${DESTDIR}/etc/init.d ${DESTDIR}/usr/local
rm -f ${DESTDIR}/install.sh ${DESTDIR}/usr/lib64