xen: preserve xendomains script; update systemd services with new path.
This commit is contained in:
@@ -12,7 +12,7 @@ Environment=XENCONSOLED_LOG_DIR=/var/log/xen/console
|
|||||||
EnvironmentFile=-/etc/conf.d/xenconsoled
|
EnvironmentFile=-/etc/conf.d/xenconsoled
|
||||||
PIDFile=/var/run/xenconsoled.pid
|
PIDFile=/var/run/xenconsoled.pid
|
||||||
ExecStartPre=/usr/bin/grep -q control_d /proc/xen/capabilities
|
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]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|||||||
@@ -5,8 +5,8 @@ Requires=xenstored.service
|
|||||||
[Service]
|
[Service]
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
RemainAfterExit=yes
|
RemainAfterExit=yes
|
||||||
ExecStart=/usr/sbin/xl create /etc/xen/conf/%i.cfg
|
ExecStart=/usr/bin/xl create /etc/xen/conf/%i.cfg
|
||||||
ExecStop=/usr/sbin/xl shutdown %i
|
ExecStop=/usr/bin/xl shutdown %i
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ Environment=XENSTORED_ARGS=
|
|||||||
EnvironmentFile=-/etc/conf.d/xenstored
|
EnvironmentFile=-/etc/conf.d/xenstored
|
||||||
PIDFile=/var/run/xenstored.pid
|
PIDFile=/var/run/xenstored.pid
|
||||||
ExecStartPre=/usr/bin/grep -q control_d /proc/xen/capabilities
|
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"
|
ExecStartPost=/usr/bin/xenstore-write "/local/domain/0/name" "Domain-0"
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
|
|||||||
@@ -55,6 +55,8 @@ do_install() {
|
|||||||
mv ${DESTDIR}/etc/xen/x*example* ${DESTDIR}/usr/share/examples/xen
|
mv ${DESTDIR}/etc/xen/x*example* ${DESTDIR}/usr/share/examples/xen
|
||||||
mv ${DESTDIR}/etc/xen/cpupool ${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.
|
# Remove useless stuff.
|
||||||
rm -rf ${DESTDIR}/etc/init.d ${DESTDIR}/usr/local
|
rm -rf ${DESTDIR}/etc/init.d ${DESTDIR}/usr/local
|
||||||
rm -f ${DESTDIR}/install.sh ${DESTDIR}/usr/lib64
|
rm -f ${DESTDIR}/install.sh ${DESTDIR}/usr/lib64
|
||||||
|
|||||||
Reference in New Issue
Block a user