123 reputation
4
bio website mattheworiordan.com
location United Kingdom
age
visits member for 3 years, 4 months
seen Sep 13 at 11:29

Sep
1
awarded  Tumbleweed
Aug
25
asked Disable mouse reporting in a terminal session after tmux exits unexpectedly
Jun
10
awarded  Popular Question
Aug
30
comment How to get sshguard to run at startup on a Mac
@nighhwk1, you're a genius, that's worked perfectly. Thanks.
Aug
30
awarded  Scholar
Aug
30
accepted How to get sshguard to run at startup on a Mac
Aug
30
comment How to get sshguard to run at startup on a Mac
THanks @Ian C, there was an issue when I ran sudo mail, saying that the sh command root did not exist. So I changed the line "@reboot root /usr/local/sbin/start-sshguard" to "@reboot /usr/local/sbin/start-sshguard" and that seemed to work (in so much as that I no longer received mail messages on reboot" However, sshguard is still not running, and now I have no error messages. Any further ideas?
Aug
30
comment How to get sshguard to run at startup on a Mac
C, well launchctl didn't work, so I have tried our your solution. Very strangely, I think I've done everything right but it's not working either. I created the start-sshguard script and tested it using sudo, and it worked fine. I then added the line to the cron by running crontab -e and inserting the line "@reboot root /usr/local/sbin/start-sshguard" into the file. But when my machine starts up, and I ps -ax | grep sshguard I see that it's not running. Very odd, do you have any other ideas? Is there a way to see the log of what happened with the cron job?
Aug
30
comment How to get sshguard to run at startup on a Mac
I downloaded the GUI and tried that, and I get the same result unfortunately. Any further ideas?
Aug
25
comment How to get sshguard to run at startup on a Mac
Thanks for your suggestion, but I'd really prefer to avoid a solution like this due to its "hackiness". Saying that, if I don't have any luck with a more generic solution, I'll be sure to give this a try and feedback here. Thanks again.
Aug
25
comment How to get sshguard to run at startup on a Mac
Thanks so much for your feedback. As you have stated, I would really like to get this to work with launchctl, as opposed to hacking a work around for this. I've checked the permissions and everything is right, no files are written as far as I can tell. When I run the application manually i.e. /usr/local/sbin/sshguard, it works. I have removed the working directory. When I run the list net.sshguard.sshguard command everything looks fine, last exit code is 0. When launchctl list I see no PID indicating it's not started. sshguard does not fork. So without GUI, what else can I do?
Aug
25
awarded  Student
Aug
24
asked How to get sshguard to run at startup on a Mac