summaryrefslogtreecommitdiffstats
path: root/server/modules/openstack-pam-hooks/opt/openslx/scripts/pam_script_ses_close.d/00-openstack
blob: 34c6080a646e81da0c27e39b2650c975abc21c44 (plain) (blame)
1
2
3
4
5
6
7
8
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