systemctl - where is it?
by JinxsDad from LinuxQuestions.org on (#6G0RG)
I remember using a command to force the system to re-read /etc/fstab after edits to it:
"systemctl daemon-reload".
I remember using this when switching USB drives from using block devices to UUIDs for mounting, and I remember it working. Not sure if it was on THIS install of slackware or one of the other distros that I was testing (and not liking, thus back to Slackware). And after forgetting to save this to a file in ~/systems, I found it again at
https://unix.stackexchange.com/quest...eload-of-fstab
Anyways, where is systemctl? The system is refusing to see updates to
/etc/fstab without it, but as root, I get
-su: systemctl: command not found
And why am I suddenly seeing this -su: crap that I've never seen before? Yes, I have a password for root, and no, I don't use it for ANYTHING that doesn't absolutely require root, especially if I'll be doing more than one command. I've known better for decades ... simple mistakes can result in immediate disaster.
If I run "zsh -l" (login shell), it goes away, but it still doesn't find systemctl.
Anyways, if not "systemctl daemon-reload", how do you force the system to reload /etc/fstab without restarting? I just restored a long-dead 4 TB drive (was as simple as lsblk, fdisk, and mkfs) and lost another one (same process fails).
Thanks
"systemctl daemon-reload".
I remember using this when switching USB drives from using block devices to UUIDs for mounting, and I remember it working. Not sure if it was on THIS install of slackware or one of the other distros that I was testing (and not liking, thus back to Slackware). And after forgetting to save this to a file in ~/systems, I found it again at
https://unix.stackexchange.com/quest...eload-of-fstab
Anyways, where is systemctl? The system is refusing to see updates to
/etc/fstab without it, but as root, I get
-su: systemctl: command not found
And why am I suddenly seeing this -su: crap that I've never seen before? Yes, I have a password for root, and no, I don't use it for ANYTHING that doesn't absolutely require root, especially if I'll be doing more than one command. I've known better for decades ... simple mistakes can result in immediate disaster.
If I run "zsh -l" (login shell), it goes away, but it still doesn't find systemctl.
Anyways, if not "systemctl daemon-reload", how do you force the system to reload /etc/fstab without restarting? I just restored a long-dead 4 TB drive (was as simple as lsblk, fdisk, and mkfs) and lost another one (same process fails).
Thanks