lsb_init 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/lsb_init/main.rb +8 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bef769fbd1fcd36c8d9a81a24a0ce7080ac89c8a
|
4
|
+
data.tar.gz: f0e38bd334acda07b5be5118eb2de2386656371e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bebebfef089e7a222c6bab924335cc8e0d055222390cb94166e03121d2ba6ef0c4db5aace3cf4382033b0f1fd660a60eae60779480efb25471db788012f4e28d
|
7
|
+
data.tar.gz: 38d5327df78b102d10c856a823485e36c2edc88876469e100f45cdf19311cedad89ac0ff97b802f8a69baa40c17429db7cc31282b0d0d51b07908e7dafec2d89
|
data/lib/lsb_init/main.rb
CHANGED
@@ -5,15 +5,23 @@ module LsbInit
|
|
5
5
|
module Main
|
6
6
|
|
7
7
|
def do_main
|
8
|
+
|
9
|
+
## entry point to start service here
|
10
|
+
|
8
11
|
sleep
|
9
12
|
end
|
10
13
|
|
11
14
|
def do_finish
|
15
|
+
|
16
|
+
## routines for finishing service
|
17
|
+
|
12
18
|
exit 0
|
13
19
|
end
|
14
20
|
|
15
21
|
def do_reload
|
16
22
|
|
23
|
+
## routines for soft reloading service without stopping
|
24
|
+
|
17
25
|
end
|
18
26
|
|
19
27
|
end
|