which of course means the service is masked! But using the following:
#sudo systemctl unmask swap.service
merely returns a blank line (prompt) also with no errors. Looking at permissions for the systemctl command I find in directory /usr/bin this:
-rwxr-xr-x 1 root root 616952 Nov 27 09:46 systemctl
OK I guess, but I’m in over my head here. What is the appropriate action to get swap to activate always at boot (with persistence for runlevel 3 / 5? If matters here is my /etc/fstab:
used (active) kernel: linux-b48g 3.16.7-7-desktop #1 SMP PREEMPT
OBTW: This is clean install (not much use since install 05 JAN 2015) Yesterday…(very good job devs …4.0 gb install in 17 mins!! WOW!!)
Thanks for looking. Have A Healthy, Prosperous Day!
—rob
So, if swap really is active, what accounts for the ‘masked’ message in my OP? Or am I reading / interpreting output incorrectly?
Seems I’ve got to get an updated version of “Linux In A Nutshell” (I have 4th Ed.) Hopefully, new one has systemd / systemctl chapter!
Man, is this confusing . . . whew!
It looks as if you have 8.4G of active swap, though you have enough memory that your system has not needed to use it.
I’m not a systemd expert. Swap only needs to be activated. It does not need to be continuously monitored. So there is no need for an active daemon process. Presumably systemd does its thing with swap, then that service is no longer needed (until next boot).
On 2015-01-07 13:16, nrickert wrote:
>
> robhwill;2687717 Wrote:
>> So, if swap really is active, what accounts for the ‘masked’ message in
>> my OP? Or am I reading / interpreting output incorrectly?
>
> It looks as if you have 8.4G of active swap, though you have enough
> memory that your system has not needed to use it.
>
> I’m not a systemd expert. Swap only needs to be activated. It does not
> need to be continuously monitored. So there is no need for an active
> daemon process. Presumably systemd does its thing with swap, then that
> service is no longer needed (until next boot).
The output of systemd is confusing, though. I simply use swapon/off to play with swap.
Just having the appropriate entry in fstab is enough, you don’t have to enable any service.
–
Cheers / Saludos,
Carlos E. R.
(from 13.1 x86_64 “Bottle” at Telcontar)