On Tue, Aug 22, 2017 at 11:49:50AM +0200, Sven Hartge wrote:
> Dave Sherohman <d...@sherohman.org> wrote:
> > Also, side question: I'm also manually running `systemctl enable
> > apache2` after upgrading.
> 
> You shouldn't need to do this, the maintainer scripts in the packages
> will do this for you during the upgrade.
> 
> *If* you need to do this to get a service started automatically during
> boot, then something is wrong with your system.

I've been doing it more just to be certain it was enabled, since I
wasn't sure how to tell if it was already enabled or not.  It probably
wasn't actually needed.

> > How can you tell whether something is enabled or not in systemd?
> > `systemctl status` will tell you whether it's currently running or
> > not, but I can't find any indication of enabled/ disabled in its
> > output.
> 
> ,----
> | # systemctl status ssh.service 
> | ● ssh.service - OpenBSD Secure Shell server
> |    Loaded: loaded (/lib/systemd/system/ssh.service; enabled)
> |    Active: active (running) since Tue 2017-08-22 11:36:46 CEST; 11min ago
> |  Main PID: 812 (sshd)
> |    CGroup: /system.slice/ssh.service
> |            └─812 /usr/sbin/sshd -D
> `----
> 
> See the "enabled" at the end of the line starting with "Loaded:"? 

...

Well, that's embarrassing.  How did I manage to never notice that in all
the times I looked for it?

Thanks!

-- 
Dave Sherohman

Reply via email to