diff options
| author | Manuel Schneider | 2014-11-26 12:21:45 +0100 |
|---|---|---|
| committer | Manuel Schneider | 2014-11-26 12:21:45 +0100 |
| commit | 63fa049f2332c1b7a19d61a4a04f537142c8a787 (patch) | |
| tree | 36295b8e35844e2491f5b3d5356d3617d45f7c10 /server/modules/openstack-pam-hooks | |
| parent | [PVS2] Remove unexpected 'fi' (diff) | |
| parent | [rfs-stage31] Write IP information to /opt/openslx/config even if config.tgz ... (diff) | |
| download | tm-scripts-63fa049f2332c1b7a19d61a4a04f537142c8a787.tar.gz tm-scripts-63fa049f2332c1b7a19d61a4a04f537142c8a787.tar.xz tm-scripts-63fa049f2332c1b7a19d61a4a04f537142c8a787.zip | |
Merge branch 'master' of git.openslx.org:openslx-ng/tm-scripts
Diffstat (limited to 'server/modules/openstack-pam-hooks')
| -rw-r--r-- | server/modules/openstack-pam-hooks/opt/openslx/scripts/pam_script_auth.d/00-openstack | 6 | ||||
| -rw-r--r-- | server/modules/openstack-pam-hooks/opt/openslx/scripts/pam_script_ses_close.d/00-openstack | 9 |
2 files changed, 15 insertions, 0 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 |
