0

I have this script in /etc/init.d, but I don't see any of its log messages in /var/log. They are of the form:

echo "ACM: here I am!" >&2

Since they are all prefixed w/"ACM", grep'ing "ACM" should make it easy to figure out where they are, but they don't seem to be anywhere.

I have a symlink in /etc/rc0.d/ given as

lrwxrwxrwx 1 root root 20 Mar 19 11:13 K01b2umount -> ../init.d/umountb2

And in /etc/init.d/ is a script that has the same permissions as all its peers. So I don't see why it wouldn't be executed. There's no way to execute that script without generating log messages, so where are they?

I'm running Ubuntu 22.04.2.

Opux
  • 227
  • 1
    Aren't SystemV scripts converted to systemd service units nowadays (by systemd-sysv-generator)? Have you checked the systemd journal (ex. journalctl | grep umount) – steeldriver Mar 20 '23 at 02:04
  • May be related to this: https://askubuntu.com/questions/1202455/where-is-the-output-from-startup-scripts-stored-in-ubuntu-19-10 – FedKad Mar 20 '23 at 08:56
  • Read man logger. – waltinator Mar 20 '23 at 14:13
  • @steeldriver I tried that, but it never showed any of those log messages in my script. – Opux Mar 21 '23 at 15:15
  • @waltinator After I did, I changed some of the log messages to logger "ACM: here I am" I still got no joy, whether I looked into journalctl or grep'd /var/log for it. – Opux Mar 21 '23 at 15:18

0 Answers0