1 http://code.google.com/p/ganeti/issues/detail?id=444
3 --- ganeti-2.6.2/Makefile.am~ 2012-12-21 15:38:52.000000000 +0100
4 +++ ganeti-2.6.2/Makefile.am 2013-06-01 16:01:46.594026366 +0200
7 doc/examples/bash_completion \
8 doc/examples/bash_completion-debug \
9 + doc/examples/ganeti.target \
11 lib/_generated_rpc.py \
14 doc/examples/ganeti.cron \
15 doc/examples/ganeti.initd \
16 doc/examples/gnt-config-backup \
17 - doc/examples/hooks/ipsec
18 + doc/examples/hooks/ipsec \
19 + doc/examples/ganeti-confd.service \
20 + doc/examples/ganeti-masterd.service \
21 + doc/examples/ganeti-noded.service \
22 + doc/examples/ganeti-luxid.service \
23 + doc/examples/ganeti-mond.service \
24 + doc/examples/ganeti-rapi.service \
25 + doc/examples/ganeti.sudoers
27 nodist_pkgpython_PYTHON = \
28 $(BUILT_PYTHON_SOURCES)
29 --- ganeti-2.6.2/doc/examples.orig/ganeti-confd.service.in 1970-01-01 01:00:00.000000000 +0100
30 +++ ganeti-2.6.2/doc/examples/ganeti-confd.service.in 2013-06-01 15:55:37.594893846 +0200
33 +Description=Ganeti Confd
34 +Requires=ganeti-noded.service
35 +After=network.target ganeti-noded.service ganeti-rapi.service
36 +ConditionPathExists=@LOCALSTATEDIR@/lib/ganeti/server.pem
40 +EnvironmentFile=-/etc/sysconfig/ganeti
41 +ExecStartPre=/usr/bin/sudo @PKGLIBDIR@/ensure-dirs
42 +ExecStart=@PREFIX@/sbin/ganeti-confd $CONFD_ARGS
44 +Group=@GNTCONFDGROUP@
45 +PIDFile=@LOCALSTATEDIR@/run/ganeti/ganeti-confd.pid
49 +WantedBy=ganeti.target
50 --- ganeti-2.6.2/doc/examples.orig/ganeti-masterd.service.in 1970-01-01 01:00:00.000000000 +0100
51 +++ ganeti-2.6.2/doc/examples/ganeti-masterd.service.in 2013-06-01 15:55:37.611560663 +0200
54 +Description=Ganeti Masterd
55 +Requires=ganeti-noded.service
56 +After=network.target ganeti-noded.service
57 +ConditionPathExists=@LOCALSTATEDIR@/lib/ganeti/server.pem
61 +EnvironmentFile=-/etc/sysconfig/ganeti
62 +ExecStartPre=/bin/sh -c '[ "$(cat @LOCALSTATEDIR@/lib/ganeti/ssconf_master_node 2>/dev/null)" = "$(hostname -f 2>/dev/null)" ]'
63 +ExecStartPre=/usr/bin/sudo @PKGLIBDIR@/ensure-dirs
64 +ExecStart=@PREFIX@/sbin/ganeti-masterd $MASTERD_ARGS
66 +Group=@GNTMASTERDGROUP@
67 +PIDFile=@LOCALSTATEDIR@/run/ganeti/ganeti-masterd.pid
68 +# TODO: Should KillMode be process?
69 +KillMode=control-group
72 +WantedBy=ganeti.target
73 --- ganeti-2.6.2/doc/examples.orig/ganeti-noded.service.in 1970-01-01 01:00:00.000000000 +0100
74 +++ ganeti-2.6.2/doc/examples/ganeti-noded.service.in 2013-06-01 15:55:37.631560853 +0200
77 +Description=Ganeti Noded
79 +ConditionPathExists=@LOCALSTATEDIR@/lib/ganeti/server.pem
83 +EnvironmentFile=-/etc/sysconfig/ganeti
84 +ExecStartPre=@PKGLIBDIR@/ensure-dirs
85 +ExecStart=@PREFIX@/sbin/ganeti-noded $NODED_ARGS
87 +Group=@GNTDAEMONSGROUP@
88 +PIDFile=@LOCALSTATEDIR@/run/ganeti/ganeti-noded.pid
89 +KillMode=control-group
92 +WantedBy=ganeti.target
93 --- ganeti-2.6.2/doc/examples.orig/ganeti-rapi.service.in 1970-01-01 01:00:00.000000000 +0100
94 +++ ganeti-2.6.2/doc/examples/ganeti-rapi.service.in 2013-06-01 15:55:37.644894309 +0200
97 +Description=Ganeti RAPI
98 +Requires=ganeti-noded.service ganeti-masterd.service
99 +After=network.target ganeti-noded.service ganeti-masterd.service
100 +ConditionPathExists=@LOCALSTATEDIR@/lib/ganeti/server.pem
104 +EnvironmentFile=-/etc/sysconfig/ganeti
105 +ExecStartPre=/usr/bin/sudo @PKGLIBDIR@/ensure-dirs
106 +ExecStart=@PREFIX@/sbin/ganeti-rapi $RAPI_ARGS
108 +Group=@GNTRAPIGROUP@
109 +PIDFile=@LOCALSTATEDIR@/run/ganeti/ganeti-rapi.pid
113 +WantedBy=ganeti.target
114 --- ganeti-2.6.2/doc/examples.orig/ganeti-luxid.service.in 1970-01-01 01:00:00.000000000 +0100
115 +++ ganeti-2.6.2/doc/examples/ganeti-luxid.service.in 2013-06-01 15:55:37.594893846 +0200
118 +Description=Ganeti luxid
119 +Requires=ganeti-noded.service ganeti-masterd.service ganeti-rapi.service
120 +After=network.target ganeti-noded.service ganeti-masterd.service ganeti-rapi.service ganeti-confd.service
121 +ConditionPathExists=@LOCALSTATEDIR@/lib/ganeti/server.pem
125 +EnvironmentFile=-/etc/sysconfig/ganeti
126 +ExecStartPre=/usr/bin/sudo @PKGLIBDIR@/ensure-dirs
127 +ExecStart=@PREFIX@/sbin/ganeti-luxid $LUXID_ARGS
129 +Group=@GNTLUXIDGROUP@
130 +PIDFile=@LOCALSTATEDIR@/run/ganeti/ganeti-luxid.pid
134 +WantedBy=ganeti.target
135 --- ganeti-2.6.2/doc/examples.orig/ganeti-mond.service.in 1970-01-01 01:00:00.000000000 +0100
136 +++ ganeti-2.6.2/doc/examples/ganeti-mond.service.in 2013-06-01 15:55:37.594893846 +0200
139 +Description=Ganeti mond
140 +Requires=ganeti-noded.service
141 +After=network.target ganeti-noded.service ganeti-masterd.service ganeti-rapi.service
142 +ConditionPathExists=@LOCALSTATEDIR@/lib/ganeti/server.pem
146 +EnvironmentFile=-/etc/sysconfig/ganeti
147 +ExecStartPre=@PKGLIBDIR@/ensure-dirs
148 +ExecStart=@PREFIX@/sbin/ganeti-mond $MOND_ARGS
150 +Group=@GNTMONDGROUP@
151 +PIDFile=@LOCALSTATEDIR@/run/ganeti/ganeti-mond.pid
155 +WantedBy=ganeti.target
156 --- ganeti-2.6.2/doc/examples.orig/ganeti.target 1970-01-01 01:00:00.000000000 +0100
157 +++ ganeti-2.6.2/doc/examples/ganeti.target 2013-06-01 15:55:37.661561129 +0200
163 +WantedBy=multi-user.target
164 --- ganeti-2.6.2/doc/examples.orig/ganeti.sudoers.in 1970-01-01 01:00:00.000000000 +0100
165 +++ ganeti-2.6.2/doc/examples/ganeti.sudoers.in 2013-06-01 15:55:37.661561129 +0200
167 +User_Alias GANETI = @GNTCONFDUSER@, @GNTMASTERUSER@, @GNTRAPIUSER@, @GNTLUXIDUSER@
169 +GANETI ALL=(ALL) NOPASSWD: @PKGLIBDIR@/ensure-dirs
170 --- ganeti-2.6.2/doc/examples.orig/README.systemd 1970-01-01 01:00:00.000000000 +0100
171 +++ ganeti-2.6.2/doc/examples/README.systemd 2013-06-01 15:55:37.661561129 +0200
173 +To register the services with ganeti.target (order doesn't matter):
175 + systemctl enable ganeti-noded ganeti-masterd ganeti-rapi ganeti-mond
179 + systemctl enable ganeti-confd
181 +To signal to the ganeti target that it should start at boot:
183 + systemctl enable ganeti.target
185 +Note that the files aren't at all tested beyond just being able to start the
186 +daemons. I don't have Ganeti running yet, so I can't test stopping.