Skip to content
Snippets Groups Projects
Commit cdd80605 authored by Alberto LIVIO BECCARIA's avatar Alberto LIVIO BECCARIA
Browse files

Maybe I eventually fixed the reboot issue.

parent 8b4973f7
No related branches found
No related tags found
No related merge requests found
......@@ -98,12 +98,10 @@ start() {
echo "Normal!"
/usr/bin/systemctl set-default graphical.target
/usr/bin/systemctl reboot --force
exit 0
else
echo "Exam!"
/usr/bin/systemctl set-default esame.target
/usr/bin/systemctl reboot --force
exit 0
fi
else
# Update this machine's current config id
......
......@@ -5,5 +5,5 @@ Wants=network-online.target esamesync-esame.service
[Service]
Type=oneshot
TimeoutSec=40
TimeoutSec=0
ExecStart=/usr/libexec/labmanager/get-config start
......@@ -5,7 +5,7 @@ After=esame-mk-homedir.service
[Service]
Type=oneshot
RemainAfterExit=yes
TimeoutStopSec=40
TimeoutSec=0
EnvironmentFile=-/local/esame-machine.conf
ExecStart=/usr/libexec/labmanager/firefox-home start
ExecStop=/usr/libexec/labmanager/firefox-home stop
......
......@@ -6,7 +6,7 @@ Wants=network-online.target esamesync-esame.service
[Service]
Type=oneshot
RemainAfterExit=yes
TimeoutStopSec=40
TimeoutSec=0
ExecStart=/usr/libexec/labmanager/get-config start
[Install]
......
......@@ -6,7 +6,7 @@ Wants=network-online.target
[Service]
Type=oneshot
RemainAfterExit=yes
TimeoutStopSec=40
TimeoutSec=0
ExecStart=/usr/libexec/labmanager/iptables-rules start
[Install]
......
......@@ -5,7 +5,7 @@ After=kdm.service esame-mk-homedir.service esame-firefox-home.service esame-virt
[Service]
Type=oneshot
RemainAfterExit=yes
TimeoutStopSec=40
TimeoutSec=0
EnvironmentFile=-/local/esame-machine.conf
ExecStart=/usr/libexec/labmanager/kdm-autologin start
ExecStop=/usr/libexec/labmanager/kdm-autologin stop
......
......@@ -5,7 +5,7 @@ After=esame-mk-homedir.service
[Service]
Type=oneshot
RemainAfterExit=yes
TimeoutStopSec=40
TimeoutSec=0
EnvironmentFile=-/local/esame-machine.conf
ExecStart=/usr/libexec/labmanager/kioskmode start
ExecStop=/usr/libexec/labmanager/kioskmode stop
......
......@@ -5,7 +5,7 @@ After=esame-get-config.service
[Service]
Type=oneshot
RemainAfterExit=yes
TimeoutStopSec=40
TimeoutSec=0
EnvironmentFile=-/local/esame-machine.conf
ExecStart=/usr/libexec/labmanager/mk-homedir start
......
[Unit]
Description=Esame - Mount homes (NFS)
Before=esame-iptables-rules.service
After=esame-get-config.service
[Service]
Type=oneshot
RemainAfterExit=yes
TimeoutStopSec=40
TimeoutSec=0
EnvironmentFile=-/local/esame-machine.conf
ExecStart=/usr/libexec/labmanager/nfs start
#ExecStop=/usr/libexec/labmanager/nfs stop
......
......@@ -4,7 +4,7 @@ After=esame-get-config.service
[Service]
Type=oneshot
TimeoutStopSec=40
TimeoutSec=0
EnvironmentFile=-/local/esame-machine.conf
ExecStart=/usr/libexec/labmanager/usb start
ExecStop=/usr/libexec/labmanager/usb stop
......
......@@ -5,7 +5,7 @@ After=esame-iptables-rules.service
[Service]
Type=oneshot
RemainAfterExit=yes
TimeoutStopSec=40
TimeoutSec=0
EnvironmentFile=-/local/esame-machine.conf
ExecStart=/usr/libexec/labmanager/virtualbox start
ExecStop=/usr/libexec/labmanager/virtualbox stop
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment