diff options
Diffstat (limited to 'server')
3 files changed, 15 insertions, 4 deletions
diff --git a/server/modules/openstack-pam-hooks/opt/openslx/scripts/pam_script_auth.d/00-openstack b/server/modules/openstack-pam-hooks/opt/openslx/scripts/pam_script_auth.d/00-openstack new file mode 100644 index 00000000..fc784208 --- /dev/null +++ b/server/modules/openstack-pam-hooks/opt/openslx/scripts/pam_script_auth.d/00-openstack @@ -0,0 +1,6 @@ +# To be sourced by /opt/openslx/scripts/pam_script_auth only + +# Stop the virtualization environment +systemctl stop nova-compute.service & +systemctl stop libvirt-bin.service & +systemctl stop neutron-plugin-openvswitch-agent.service & diff --git a/server/modules/openstack-pam-hooks/opt/openslx/scripts/pam_script_ses_close.d/00-openstack b/server/modules/openstack-pam-hooks/opt/openslx/scripts/pam_script_ses_close.d/00-openstack new file mode 100644 index 00000000..34c6080a --- /dev/null +++ b/server/modules/openstack-pam-hooks/opt/openslx/scripts/pam_script_ses_close.d/00-openstack @@ -0,0 +1,9 @@ +# To be sourced by /opt/openslx/scripts/pam_script_ses_close only + +# Start the virtualization environment again +# check if another user is logged in +if [ -z "$(who |grep '^[^root]')" ]; then + systemctl start nova-compute.service & + systemctl start libvirt-bin.service & + systemctl start neutron-plugin-openvswitch-agent.service & +fi diff --git a/server/modules/pvs2mgr-freiburg/opt/openslx/scripts/setup-pvsmgr b/server/modules/pvs2mgr-freiburg/opt/openslx/scripts/setup-pvsmgr deleted file mode 100755 index dedb0995..00000000 --- a/server/modules/pvs2mgr-freiburg/opt/openslx/scripts/setup-pvsmgr +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/ash - -openbox & -exec /opt/openslx/bin/pvsmgr |
