Or something. Systemd has been a royal PITA for me, as I did a lot of serious customization - my own daemons, special mounts of remote stuff, basically every system around here is heavily customized....and when systemd first started being forced upon us, things like mounting a remote share didn't work if you were using wifi - that's right, the old put it in /etc/fstab thing that worked forever and was smart enough to wait to see if you'd get connected was broken by red hat's (Lennart Poettering) thing that was suppose to make things more reliable and better sequenced on boot. Of course, not....and LPs arrogant response was "that was never reliable, don't try it EWONT_FIX". Except it WAS reliable, and the workarounds on google did work - till the next version of systemd came along in updates, and then those old workarounds generated hung systems that wouldn't boot (real nice for remote headless boxes)...and on and on. I'll skip the other tales of woe for now..it's getting stable now and well, you gotta work with the enemy you know.
I had something new fail, again it'd be nice if things you find on google had dates and stuff so you'd know if they were maybe obsolete -
The "service" command used to start and stop services initially got redirected to the equivalent systemctl command and noted that on your terminal.
I never saw that notice myself - I just found an obsolete google ref to it - and now, it doesn't work anyway, being for one of the older init systems.
And....systemd daemons don't have to be daemons....now. In fact, bringing over your old ones that carefully forked off is now a bad thing. And it bit me on the ... along with the service command as I was editing something and expecting it to, you know, stop when commanded and then restart with the edited version, instead of ignoring the service stop command but paying attention to the restart one...resulting in multiple daemons writing to the same mariadb database and weird error messages that took awhile to figure out....
I've had so much of this stuff happen in my increasingly sophisticated infrastructure here that I started another BBS internally since it'd be a lot of clutter here, and harder to search among the other content here. But...this one's worth copying over.
//////////////////////////////////////////////////// copy from internal phpbb
Be sure and check the man pages on HC21...made with the script below.
New style daemons don't need to daemonize....!!!!!!!!!!!!!!!!!!! and in fact it screws up some things in systemd (as usual found out the hard way)
https://www.freedesktop.org/software/sy ... aemon.html
Don't use sudo service start/stop etc - that's from init or upstart and no longer redirects to systemctl - and sometimes won't work or do as you expect.
Here's a neat little script I wrote to make man pages into pdfs because the terminal UI for man is horrible.
If two arguments, the first is the section number (just like plain man)
This will sometimes show an error because some font it wants isn't there. Works beautifully even so. Just check the pretty .pdf.
I put the results on a share here for later on. Most of these are too big to print and use that way, and as far as I know man doesn't have meaningful internal seach in results, but pdf does and that's a huge deal.
#!/bin/bash
# man2pdf script
# fairly cheesy existence test and assume
# args are reasonable - no error checking
if [ $2 ]
then
FILE=($2.ps)
else
FILE=($1.ps)
fi
echo "file: $FILE"
man -t $1 $2 >> $FILE
ps2pdf $FILE
rm $FILE