Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Timothy Frew
Sympl
Commits
b137c847
Commit
b137c847
authored
Mar 26, 2020
by
Paul Cammish
Browse files
Merge branch 'buster-testing' into 'buster'
buster_testing -> buster Closes #279 See merge request
sympl/sympl!168
parents
a31c2e42
74f06b85
Changes
4
Hide whitespace changes
Inline
Side-by-side
CHANGELOG
View file @
b137c847
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 @
b137c847
sympl-monit (10.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 (10.0.190704.0) stable; urgency=medium
* Updated monit tests to use TLSv1.2
...
...
monit/sbin/sympl-monit-failure-email
View file @
b137c847
...
...
@@ -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 @
b137c847
...
...
@@ -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
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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