diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /app-admin/monit/files |
reinit the tree, so we can have metadata
Diffstat (limited to 'app-admin/monit/files')
-rw-r--r-- | app-admin/monit/files/monit.initd-5.0-r1 | 40 | ||||
-rw-r--r-- | app-admin/monit/files/monit.pamd | 4 | ||||
-rw-r--r-- | app-admin/monit/files/monit.service | 11 |
3 files changed, 55 insertions, 0 deletions
diff --git a/app-admin/monit/files/monit.initd-5.0-r1 b/app-admin/monit/files/monit.initd-5.0-r1 new file mode 100644 index 000000000000..4589cf41bfef --- /dev/null +++ b/app-admin/monit/files/monit.initd-5.0-r1 @@ -0,0 +1,40 @@ +#!/sbin/openrc-run +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License, v2 or later + +extra_commands="configtest" +extra_started_commands="reload" + +command="/usr/bin/monit" + +depend() { + use net +} + +configtest() { + ${command} -t 1>/dev/null 2>&1 + ret=$? + if [ $ret -ne 0 ]; then + eerror "${SVCNAME} has detected an error in your setup:" + ${command} -t + fi + return $ret +} + +start() { + ebegin "Starting monit" + start-stop-daemon --start --quiet --exec ${command} >/dev/null 2>&1 + eend $? +} + +stop() { + ebegin "Stopping monit" + start-stop-daemon --stop --quiet --exec ${command} + eend $? +} + +reload() { + ebegin "Reloading monit" + ${command} -c /etc/monitrc reload >/dev/null 2>&1 + eend $? +} diff --git a/app-admin/monit/files/monit.pamd b/app-admin/monit/files/monit.pamd new file mode 100644 index 000000000000..6322e259c745 --- /dev/null +++ b/app-admin/monit/files/monit.pamd @@ -0,0 +1,4 @@ +auth sufficient pam_securityserver.so +auth sufficient pam_unix.so +auth required pam_deny.so +auth required pam_permit.so diff --git a/app-admin/monit/files/monit.service b/app-admin/monit/files/monit.service new file mode 100644 index 000000000000..268825285d05 --- /dev/null +++ b/app-admin/monit/files/monit.service @@ -0,0 +1,11 @@ +[Unit] +Description=Pro-active monitoring utility for unix systems +After=network.target + +[Service] +ExecStart=/usr/bin/monit -I +ExecStop=/usr/bin/monit quit +ExecReload=/usr/bin/monit reload + +[Install] +WantedBy=multi-user.target |