Add systemd unit file and generation

Signed-off-by: Lon Hohberger <lon@users.sourceforge.net>
This commit is contained in:
Lon Hohberger 2012-02-07 13:43:35 -05:00
parent a1b5a03c38
commit 9522be50d9
3 changed files with 23 additions and 7 deletions

View File

@ -11,7 +11,7 @@
###############################################################################
all:
all: fence_virtd.service
make -C config
make -C common
make -C client
@ -28,7 +28,17 @@ clean:
make -C common clean
make -C client clean
make -C server clean
rm -f fence_virtd.service
maintainer-clean:
make clean
git clean -df
fence_virtd.service: fence_virtd.service.in
# Expand macros and add to unit file
SBINDIR="@sbindir@"; \
SCDIR="@sysconfdir@"; \
cat $^ > $@ ; \
echo "EnvironmentFile=-$$SCDIR/sysconfig/fence_virtd" >> $@ ;\
echo "ExecStart=$$SBINDIR/fence_virtd \$$FENCE_VIRTD_ARGS" >> $@

6
TODO
View File

@ -1,13 +1,7 @@
High Priority / Blockers for v1.0;
* pacemaker backend
* endian-clean / 64-bit clean data structure analysis
Future Stuff:
* oVirt backend
* libccs configuration plugin
* clean up development bits so third parties can develop plugins

12
fence_virtd.service.in Normal file
View File

@ -0,0 +1,12 @@
[Unit]
Description=Fence-Virt system host daemon
After=syslog.target network.target libvirt-qmf.service libvirtd.service corosync.service
Requires=syslog.target network.target
[Install]
WantedBy=multi-user.target
[Service]
Restart=on-failure
SysVStartPriority=99
# Autogenerated below here