]> git.pld-linux.org Git - packages/ganeti.git/blob - systemd.patch
- fix internal deps in systemd service files
[packages/ganeti.git] / systemd.patch
1 http://code.google.com/p/ganeti/issues/detail?id=444
2
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
5 @@ -149,6 +149,7 @@
6         $(BUILT_EXAMPLES) \
7         doc/examples/bash_completion \
8         doc/examples/bash_completion-debug \
9 +       doc/examples/ganeti.target \
10         $(userspecs) \
11         lib/_generated_rpc.py \
12         $(man_MANS) \
13 @@ -190,7 +190,14 @@
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
26  
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
31 @@ -0,0 +1,18 @@
32 +[Unit]
33 +Description=Ganeti Confd
34 +Requires=ganeti-noded.service ganeti-masterd.service ganeti-rapi.service
35 +After=ganeti-rapi.service
36 +ConditionPathExists=@LOCALSTATEDIR@/lib/ganeti/server.pem
37 +
38 +[Service]
39 +Type=forking
40 +EnvironmentFile=-/etc/sysconfig/ganeti
41 +ExecStartPre=/usr/bin/sudo @PKGLIBDIR@/ensure-dirs
42 +ExecStart=@PREFIX@/sbin/ganeti-confd $CONFD_ARGS
43 +User=@GNTCONFDUSER@
44 +Group=@GNTCONFDGROUP@
45 +PIDFile=@LOCALSTATEDIR@/run/ganeti/ganeti-confd.pid
46 +KillMode=process
47 +
48 +[Install]
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
52 @@ -0,0 +1,19 @@
53 +[Unit]
54 +Description=Ganeti Masterd
55 +Requires=ganeti-noded.service
56 +After=ganeti-noded.service
57 +ConditionPathExists=@LOCALSTATEDIR@/lib/ganeti/server.pem
58 +
59 +[Service]
60 +Type=forking
61 +EnvironmentFile=-/etc/sysconfig/ganeti
62 +ExecStartPre=/usr/bin/sudo @PKGLIBDIR@/ensure-dirs
63 +ExecStart=@PREFIX@/sbin/ganeti-masterd $MASTERD_ARGS
64 +User=@GNTMASTERUSER@
65 +Group=@GNTMASTERDGROUP@
66 +PIDFile=@LOCALSTATEDIR@/run/ganeti/ganeti-masterd.pid
67 +# TODO: Should KillMode be process?
68 +KillMode=control-group
69 +
70 +[Install]
71 +WantedBy=ganeti.target
72 --- ganeti-2.6.2/doc/examples.orig/ganeti-noded.service.in      1970-01-01 01:00:00.000000000 +0100
73 +++ ganeti-2.6.2/doc/examples/ganeti-noded.service.in   2013-06-01 15:55:37.631560853 +0200
74 @@ -0,0 +1,16 @@
75 +[Unit]
76 +Description=Ganeti Noded
77 +ConditionPathExists=@LOCALSTATEDIR@/lib/ganeti/server.pem
78 +
79 +[Service]
80 +Type=forking
81 +EnvironmentFile=-/etc/sysconfig/ganeti
82 +ExecStartPre=@PKGLIBDIR@/ensure-dirs
83 +ExecStart=@PREFIX@/sbin/ganeti-noded $NODED_ARGS
84 +User=@GNTNODEDUSER@
85 +Group=@GNTDAEMONSGROUP@
86 +PIDFile=@LOCALSTATEDIR@/run/ganeti/ganeti-noded.pid
87 +KillMode=control-group
88 +
89 +[Install]
90 +WantedBy=ganeti.target
91 --- ganeti-2.6.2/doc/examples.orig/ganeti-rapi.service.in       1970-01-01 01:00:00.000000000 +0100
92 +++ ganeti-2.6.2/doc/examples/ganeti-rapi.service.in    2013-06-01 15:55:37.644894309 +0200
93 @@ -0,0 +1,18 @@
94 +[Unit]
95 +Description=Ganeti RAPI
96 +Requires=ganeti-noded.service
97 +After=ganeti-masterd.service
98 +ConditionPathExists=@LOCALSTATEDIR@/lib/ganeti/server.pem
99 +
100 +[Service]
101 +Type=forking
102 +EnvironmentFile=-/etc/sysconfig/ganeti
103 +ExecStartPre=/usr/bin/sudo @PKGLIBDIR@/ensure-dirs
104 +ExecStart=@PREFIX@/sbin/ganeti-rapi $RAPI_ARGS
105 +User=@GNTRAPIUSER@
106 +Group=@GNTRAPIGROUP@
107 +PIDFile=@LOCALSTATEDIR@/run/ganeti/ganeti-rapi.pid
108 +KillMode=process
109 +
110 +[Install]
111 +WantedBy=ganeti.target
112 --- ganeti-2.6.2/doc/examples.orig/ganeti-luxid.service.in      1970-01-01 01:00:00.000000000 +0100
113 +++ ganeti-2.6.2/doc/examples/ganeti-luxid.service.in   2013-06-01 15:55:37.594893846 +0200
114 @@ -0,0 +1,18 @@
115 +[Unit]
116 +Description=Ganeti luxid
117 +Requires=ganeti-noded.service ganeti-masterd.service ganeti-rapi.service
118 +After=ganeti-rapi.service
119 +ConditionPathExists=@LOCALSTATEDIR@/lib/ganeti/server.pem
120 +
121 +[Service]
122 +Type=forking
123 +EnvironmentFile=-/etc/sysconfig/ganeti
124 +ExecStartPre=/usr/bin/sudo @PKGLIBDIR@/ensure-dirs
125 +ExecStart=@PREFIX@/sbin/ganeti-luxid $LUXID_ARGS
126 +User=@GNTLUXIDUSER@
127 +Group=@GNTLUXIDGROUP@
128 +PIDFile=@LOCALSTATEDIR@/run/ganeti/ganeti-luxid.pid
129 +KillMode=process
130 +
131 +[Install]
132 +WantedBy=ganeti.target
133 --- ganeti-2.6.2/doc/examples.orig/ganeti-mond.service.in       1970-01-01 01:00:00.000000000 +0100
134 +++ ganeti-2.6.2/doc/examples/ganeti-mond.service.in    2013-06-01 15:55:37.594893846 +0200
135 @@ -0,0 +1,18 @@
136 +[Unit]
137 +Description=Ganeti mond
138 +Requires=ganeti-noded.service
139 +After=ganeti-rapi.service ganeti-masterd.service
140 +ConditionPathExists=@LOCALSTATEDIR@/lib/ganeti/server.pem
141 +
142 +[Service]
143 +Type=forking
144 +EnvironmentFile=-/etc/sysconfig/ganeti
145 +ExecStartPre=@PKGLIBDIR@/ensure-dirs
146 +ExecStart=@PREFIX@/sbin/ganeti-mond $MOND_ARGS
147 +User=@GNTMONDUSER@
148 +Group=@GNTMONDGROUP@
149 +PIDFile=@LOCALSTATEDIR@/run/ganeti/ganeti-mond.pid
150 +KillMode=process
151 +
152 +[Install]
153 +WantedBy=ganeti.target
154 --- ganeti-2.6.2/doc/examples.orig/ganeti.target        1970-01-01 01:00:00.000000000 +0100
155 +++ ganeti-2.6.2/doc/examples/ganeti.target     2013-06-01 15:55:37.661561129 +0200
156 @@ -0,0 +1,5 @@
157 +[Unit]
158 +Description=Ganeti
159 +
160 +[Install]
161 +WantedBy=multi-user.target
162 --- ganeti-2.6.2/doc/examples.orig/ganeti.sudoers.in    1970-01-01 01:00:00.000000000 +0100
163 +++ ganeti-2.6.2/doc/examples/ganeti.sudoers.in 2013-06-01 15:55:37.661561129 +0200
164 @@ -0,0 +1,3 @@
165 +User_Alias GANETI = @GNTCONFDUSER@, @GNTMASTERUSER@, @GNTRAPIUSER@, @GNTLUXIDUSER@
166 +
167 +GANETI ALL=(ALL) NOPASSWD: @PKGLIBDIR@/ensure-dirs
168 --- ganeti-2.6.2/doc/examples.orig/README.systemd       1970-01-01 01:00:00.000000000 +0100
169 +++ ganeti-2.6.2/doc/examples/README.systemd    2013-06-01 15:55:37.661561129 +0200
170 @@ -0,0 +1,14 @@
171 +To register the services with ganeti.target (order doesn't matter):
172 +
173 +    systemctl enable ganeti-noded ganeti-masterd ganeti-rapi ganeti-mond
174 +
175 +To include confd:
176 +
177 +    systemctl enable ganeti-confd
178 +
179 +To signal to the ganeti target that it should start at boot:
180 +
181 +    systemctl enable ganeti.target
182 +
183 +Note that the files aren't at all tested beyond just being able to start the
184 +daemons. I don't have Ganeti running yet, so I can't test stopping.
This page took 0.058957 seconds and 3 git commands to generate.