author | Michael Krelin <hacker@klever.net> | 2011-10-10 21:21:36 (UTC) |
---|---|---|
committer | Michael Krelin <hacker@klever.net> | 2011-10-12 19:58:30 (UTC) |
commit | e402d5619a9dd86e0f51fa39418f4db490ef1037 (patch) (unidiff) | |
tree | 69b9176d76d71b5f147c8a93830e1b6d66f3daa1 | |
parent | 970337c91c02afa9b8d33ab5596270594ffe58e6 (diff) | |
download | dudki-master.zip dudki-master.tar.gz dudki-master.tar.bz2 |
Ubuntization to be precise.
Signed-off-by: Michael Krelin <hacker@klever.net>
-rw-r--r-- | debian/changelog | 5 | ||||
-rw-r--r-- | debian/compat | 1 | ||||
-rw-r--r-- | debian/control | 17 | ||||
-rw-r--r-- | debian/copyright | 19 | ||||
-rw-r--r-- | debian/dudki.conf | 17 | ||||
-rw-r--r-- | debian/dudki.default | 1 | ||||
-rw-r--r-- | debian/dudki.docs | 2 | ||||
-rw-r--r-- | debian/dudki.init | 58 | ||||
-rw-r--r-- | debian/dudki.install | 1 | ||||
-rw-r--r-- | debian/dudki.postinst | 17 | ||||
-rw-r--r-- | debian/dudki.postrm | 20 | ||||
-rwxr-xr-x | debian/rules | 9 | ||||
-rw-r--r-- | debian/source/format | 1 |
13 files changed, 168 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..f3b7367 --- a/dev/null +++ b/debian/changelog | |||
@@ -0,0 +1,5 @@ | |||
1 | dudki (0.2.2) natty; urgency=low | ||
2 | |||
3 | * Initial debianized release. | ||
4 | |||
5 | -- Michael Krelin <hacker@klever.net> Wed, 12 Oct 2011 21:58:01 +0200 | ||
diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..7ed6ff8 --- a/dev/null +++ b/debian/compat | |||
@@ -0,0 +1 @@ | |||
5 | |||
diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..a899c85 --- a/dev/null +++ b/debian/control | |||
@@ -0,0 +1,17 @@ | |||
1 | Source: dudki | ||
2 | Section: utils | ||
3 | Priority: optional | ||
4 | Maintainer: Michael Krelin <hacker@klever.net> | ||
5 | Build-Depends: debhelper, cdbs, libdotconf-dev, pkg-config, xsltproc | ||
6 | Standards-Version: 3.9.1 | ||
7 | Homepage: http://kin.klever.net/dudki | ||
8 | |||
9 | Package: dudki | ||
10 | Architecture: any | ||
11 | Depends: ${shlibs:Depends}, ${misc:Depends} | ||
12 | Description: Process monitoring daemon | ||
13 | Dudki! is a simple maintenance daemon that checks whether certain processes | ||
14 | are running (based on pidfiles) and, if needed, tries to restart them. It | ||
15 | also supports a self-test command line invocation which can be used in a cron | ||
16 | job. | ||
17 | . | ||
diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..8ceaf0a --- a/dev/null +++ b/debian/copyright | |||
@@ -0,0 +1,19 @@ | |||
1 | Copyright (c) 2004-2006 Klever Group (http://www.klever.net/) | ||
2 | |||
3 | Permission is hereby granted, free of charge, to any person obtaining a copy of | ||
4 | this software and associated documentation files (the "Software"), to deal in | ||
5 | the Software without restriction, including without limitation the rights to | ||
6 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies | ||
7 | of the Software, and to permit persons to whom the Software is furnished to do | ||
8 | so, subject to the following conditions: | ||
9 | |||
10 | The above copyright notice and this permission notice shall be included in all | ||
11 | copies or substantial portions of the Software. | ||
12 | |||
13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
19 | SOFTWARE. | ||
diff --git a/debian/dudki.conf b/debian/dudki.conf new file mode 100644 index 0000000..cfd6800 --- a/dev/null +++ b/debian/dudki.conf | |||
@@ -0,0 +1,17 @@ | |||
1 | CheckInterval 75 | ||
2 | PidFile /var/run/dudki.pid | ||
3 | Daemonize on | ||
4 | |||
5 | Notify mailto:root | ||
6 | MailtoHeader From "Dudki Process Manager <root>" | ||
7 | MailtoHeader User-Agent "Dudki Process Manager" | ||
8 | |||
9 | <Process sshd> | ||
10 | PidFile /var/run/sshd.pid | ||
11 | RestartCommand "exec invoke-rc.d ssh restart" | ||
12 | </Process> | ||
13 | |||
14 | <Process cron> | ||
15 | ProcessName cron | ||
16 | RestartCommand "exec invoke-rc.d cron restart" | ||
17 | </Process> | ||
diff --git a/debian/dudki.default b/debian/dudki.default new file mode 100644 index 0000000..6ca905a --- a/dev/null +++ b/debian/dudki.default | |||
@@ -0,0 +1 @@ | |||
DUDKI_CONF=/etc/dudki.conf | |||
diff --git a/debian/dudki.docs b/debian/dudki.docs new file mode 100644 index 0000000..3cc350b --- a/dev/null +++ b/debian/dudki.docs | |||
@@ -0,0 +1,2 @@ | |||
1 | AUTHORS | ||
2 | NEWS | ||
diff --git a/debian/dudki.init b/debian/dudki.init new file mode 100644 index 0000000..aaab403 --- a/dev/null +++ b/debian/dudki.init | |||
@@ -0,0 +1,58 @@ | |||
1 | #! /bin/sh | ||
2 | # | ||
3 | # dudki dudki startup script | ||
4 | # | ||
5 | |||
6 | ### BEGIN INIT INFO | ||
7 | # Provides: dudki | ||
8 | # Required-Start: $local_fs $remote_fs $syslog | ||
9 | # Required-Stop: $local_fs $remote_fs $syslog | ||
10 | # Should-Start: | ||
11 | # Should-Stop: | ||
12 | # Default-Start: S 2 3 4 5 | ||
13 | # Default-Stop: 0 1 6 | ||
14 | # Short-Description: a process maintenance daemon | ||
15 | ### END INIT INFO | ||
16 | |||
17 | # Edit /etc/default/dudki to change options | ||
18 | DUDKI_CONF=/etc/dudki.conf | ||
19 | |||
20 | PATH=/sbin:/bin:/usr/sbin:/usr/bin | ||
21 | DUDKI=/usr/sbin/dudki | ||
22 | NAME=dudki | ||
23 | DESC="process maintenance daemon" | ||
24 | |||
25 | [ -x $DUDKI ] || exit 0 | ||
26 | |||
27 | . /lib/lsb/init-functions | ||
28 | |||
29 | [ -f /etc/default/$NAME ] && . /etc/default/$NAME | ||
30 | |||
31 | case "$1" in | ||
32 | start) | ||
33 | log_daemon_msg "Starting $DESC $NAME" | ||
34 | $DUDKI -e | ||
35 | log_end_msg $? | ||
36 | ;; | ||
37 | stop) | ||
38 | log_daemon_msg "Stopping $DESC $NAME" | ||
39 | $DUDKI -k | ||
40 | log_end_msg $? | ||
41 | ;; | ||
42 | reload) | ||
43 | log_daemon_msg "Reloading $NAME configuration" | ||
44 | $DUDKI -r | ||
45 | log_end_msg $? | ||
46 | ;; | ||
47 | restart|force-reload) | ||
48 | $0 stop | ||
49 | sleep 1 | ||
50 | $0 start | ||
51 | ;; | ||
52 | *) | ||
53 | echo "Usage: /etc/init.d/$NAME {start|stop|restart|reload|force-reload}" >&2 | ||
54 | exit 1 | ||
55 | ;; | ||
56 | esac | ||
57 | |||
58 | exit 0 | ||
diff --git a/debian/dudki.install b/debian/dudki.install new file mode 100644 index 0000000..7a98d26 --- a/dev/null +++ b/debian/dudki.install | |||
@@ -0,0 +1 @@ | |||
debian/dudki.conf usr/share/doc/dudki/ | |||
diff --git a/debian/dudki.postinst b/debian/dudki.postinst new file mode 100644 index 0000000..49dc83c --- a/dev/null +++ b/debian/dudki.postinst | |||
@@ -0,0 +1,17 @@ | |||
1 | #!/bin/sh | ||
2 | set -e | ||
3 | |||
4 | if [ "$1" = "configure" ]; then | ||
5 | |||
6 | if which ucf >/dev/null; then | ||
7 | ucf /usr/share/doc/dudki/dudki.conf /etc/dudki.conf | ||
8 | fi | ||
9 | |||
10 | if which ucfr >/dev/null; then | ||
11 | ucfr dudki /etc/dudki.conf | ||
12 | fi | ||
13 | fi | ||
14 | |||
15 | #DEBHELPER# | ||
16 | |||
17 | exit 0 | ||
diff --git a/debian/dudki.postrm b/debian/dudki.postrm new file mode 100644 index 0000000..34413ba --- a/dev/null +++ b/debian/dudki.postrm | |||
@@ -0,0 +1,20 @@ | |||
1 | #!/bin/sh | ||
2 | set -e | ||
3 | |||
4 | if [ "$1" = "purge" ]; then | ||
5 | |||
6 | if which ucf >/dev/null; then | ||
7 | ucf --purge /etc/dudki.conf | ||
8 | fi | ||
9 | |||
10 | if which ucfr >/dev/null; then | ||
11 | ucfr --purge dudki /etc/dudki.conf | ||
12 | fi | ||
13 | |||
14 | rm -f /etc/dudki.conf /etc/dudki.conf.*ucf* | ||
15 | |||
16 | fi | ||
17 | |||
18 | #DEBHELPER# | ||
19 | |||
20 | exit 0 | ||
diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..0860416 --- a/dev/null +++ b/debian/rules | |||
@@ -0,0 +1,9 @@ | |||
1 | #!/usr/bin/make -f | ||
2 | |||
3 | makebuilddir/dudki:: | ||
4 | bash autogen.sh --version | ||
5 | |||
6 | include /usr/share/cdbs/1/rules/debhelper.mk | ||
7 | include /usr/share/cdbs/1/class/autotools.mk | ||
8 | |||
9 | |||
diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..89ae9db --- a/dev/null +++ b/debian/source/format | |||
@@ -0,0 +1 @@ | |||
3.0 (native) | |||