murakumo 0.1.6 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/murakumo-install-init-script +8 -0
- data/etc/murakumo.server +3 -3
- data/lib/misc/murakumo_const.rb +1 -1
- metadata +3 -3
@@ -18,5 +18,13 @@ else
|
|
18
18
|
exit 1
|
19
19
|
end
|
20
20
|
|
21
|
+
bin_dir = ((RbConfig::CONFIG['bindir'] rescue nil) || '').strip
|
22
|
+
|
21
23
|
`cp -i #{gem_dir}/murakumo-*/etc/murakumo.server #{INIT_D_DIR}/murakumo`
|
22
24
|
`chmod 755 #{INIT_D_DIR}/murakumo`
|
25
|
+
|
26
|
+
unless bin_dir.empty?
|
27
|
+
`sed -i -r 's|^# processname:.*|# processname: #{bin_dir}/murakumo|' #{INIT_D_DIR}/murakumo`
|
28
|
+
`sed -i -r 's|^prog=.*|prog=#{bin_dir}/murakumo|' #{INIT_D_DIR}/murakumo`
|
29
|
+
`sed -i -r 's|^ctlprog=.*|ctlprog=#{bin_dir}/mrkmctl|' #{INIT_D_DIR}/murakumo`
|
30
|
+
end
|
data/etc/murakumo.server
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
#!/bin/sh
|
2
2
|
# chkconfig: 345 11 89
|
3
3
|
# description: The internal DNS server which manages name information using a gossip protocol.
|
4
|
-
# processname: /usr/
|
4
|
+
# processname: /usr/bin/murakumo
|
5
5
|
# config: /etc/murakumo.yml
|
6
6
|
|
7
|
-
prog=/usr/
|
8
|
-
ctlprog=/usr/
|
7
|
+
prog=/usr/bin/murakumo
|
8
|
+
ctlprog=/usr/bin/mrkmctl
|
9
9
|
conf=/etc/murakumo.yml
|
10
10
|
|
11
11
|
if [ "$1" != "configure" -a ! -e "$conf" ]; then
|
data/lib/misc/murakumo_const.rb
CHANGED
metadata
CHANGED