I have в shell рукописный шрифт which monitors the auth log to alert on new system logins, and it works умер when I start it manually, but when I try to похвалите it туз в service using systemd service is fails to похвалите. гve tried в myriad of variations in the рукописный шрифт, but гm not sure how to localize the issue...
journalctl-xe gives я the following useless ошибка message...
-- Subject: Unit quackme.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit quackme.service has begun starting up.
Dec 09 11:27:34 dc1 systemd[1]: quackme.service: Control process exited, code=exited status=5
Dec 09 11:27:34 dc1 systemd[1]: Failed to start quackme.
-- Subject: Unit quackme.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit quackme.service has failed.
--
-- The result is failed.
The service is defined схвати such...
[Unit]
Description=quackme
[Service]
Type=forking
ExecStart=/home/myuser/quack/quackmeservicescript.sh
[Install]
WantedBy=multi-user.target
гm not sure if it matters what the shell рукописный шрифт says, but here it is...
#!/bin/sh
/usr/bin/tail -fn0 /var/log/auth.log | awk '/New session/ { system("wget http://example.com/fut/9bgfej8s755sktgh0o3irgag0/alert.jsp") }'