Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Sympl
Sympl
Commits
7ed1e852
Commit
7ed1e852
authored
Mar 26, 2020
by
Paul Cammish
Browse files
stretch_testing -> stretch
parent
afd1a402
Changes
4
Hide whitespace changes
Inline
Side-by-side
CHANGELOG
View file @
7ed1e852
CHANGELOG
---------
2020-03-26
sympl-monit
* Don't use sudo when writing cursor. Fixes issue #279.
* Update sympl-monit.cursor path.
2020-01-27
sympl-webmail
* Fixed importing contacts
...
...
monit/debian/changelog
View file @
7ed1e852
sympl-monit (9.0.200326.0) stable; urgency=medium
* Don't use sudo when writing cursor. Fixes issue #279.
* Update sympl-monit.cursor path.
-- Paul Cammish <sympl@kelduum.net> Thu, 26 Mar 2020 11:26:00 +0000
sympl-monit (9.0.190706.0) stable; urgency=medium
* Updated tests to use TLSv1.2
...
...
monit/sbin/sympl-monit-failure-email
View file @
7ed1e852
...
...
@@ -3,7 +3,7 @@
set
-e
args
=
"--since=today"
[
-e
"/
var/
tmp/sympl-monit.cursor"
]
&&
args
=
"--after-cursor=
$(
</
var/
tmp/sympl-monit.cursor
)
"
[
-e
"/tmp/sympl-monit.cursor"
]
&&
args
=
"--after-cursor=
$(
</tmp/sympl-monit.cursor
)
"
journalctl
-b0
$args
-o
cat
-u
"sympl-monit.service"
| mail
-s
"
S
ympl
monit
or
detected service failure"
root
journalctl
-b0
$args
-o
cat
-u
"sympl-monit.service"
| mail
-s
"
Warning: s
ympl
-
monit detected service failure"
root
monit/system/sympl-monit.service
View file @
7ed1e852
...
...
@@ -4,6 +4,6 @@ OnFailure=sympl-monit-failure-email.service
[Service]
Type
=
simple
ExecStartPre
=
/bin/sh -c 'journalctl -o cat -n 0 -u %n --show-cursor | cut -f3 -d" "
| sudo -u nobody tee /var
/tmp/sympl-monit.cursor
>/dev/null
'
ExecStartPre
=
/bin/sh -c 'journalctl -o cat -n 0 -u %n --show-cursor | cut -f3 -d" "
>
/tmp/sympl-monit.cursor'
ExecStart
=
/usr/sbin/sympl-monit -t email /etc/sympl/monit.d
SuccessExitStatus
=
75
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment