jupyterhub / systemdspawner

Spawn JupyterHub single-user notebook servers with systemd
BSD 3-Clause "New" or "Revised" License
92 stars 45 forks source link

Use systemctl to check systemd version #68

Closed Carreau closed 4 years ago

Carreau commented 4 years ago

Keeps the commands we use consistent.

yuvipanda commented 4 years ago

Both of these work:

yuvipanda@riker-two:~$ systemctl --version
systemd 215
+PAM +AUDIT +SELINUX +IMA +SYSVINIT +LIBCRYPTSETUP +GCRYPT +ACL +XZ -SECCOMP -APPARMOR
yuvipanda@riker-two:~$ systemd --version
systemd 215
+PAM +AUDIT +SELINUX +IMA +SYSVINIT +LIBCRYPTSETUP +GCRYPT +ACL +XZ -SECCOMP -APPARMOR
yuvipanda@riker-two:~$

But, I'll merge this so commands are consistent. Thanks, @Carreau

Carreau commented 4 years ago

Thanks ! 'systemd' raise a "command not found" on my system. So maybe system ctl is just a bit more general ?

I miss U.