Changeset 7621


Ignore:
Timestamp:
Jun 29, 2018, 1:07:12 PM (12 months ago)
Author:
hectorgh
Message:

fixed time variables

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lliurex-shutdowner/trunk/fuentes/lliurex-shutdowner-common.install/usr/sbin/shutdown-lliurex

    r7616 r7621  
    1616
    1717t=time.localtime()
    18 shutdown_date="%s:%s"%(t.tm_hour,t.tm_min+wait_time)
     18
     19if is_server==0:
     20        tmp_wait_time=server_wait_time
     21else:
     22        tmp_wait_time=client_wait_time
     23
     24shutdown_date="%s:%s"%(t.tm_hour,t.tm_min+tmp_wait_time)
    1925
    2026
     
    7379        else:
    7480                tmp_wait_time=client_wait_time
    75         os.system("/sbin/shutdown -h +%s"%tmp_wait_time)
     81        command="/sbin/shutdown -h +%s"%tmp_wait_time
     82        os.system(command)
    7683
    7784if is_thin==0 and not os.path.exists(thinclient_cron_file):
    7885        time.sleep(60*client_wait_time)
    79         os.system("n4d-client -r -m shutdown -c ShutdownerClient")
     86        command="n4d-client -r -m shutdown -c ShutdownerClient"
     87        os.system(command)
Note: See TracChangeset for help on using the changeset viewer.