Many devotees observe a day-long fast on Mahashivratri, and at night they remain awake lighting lamps at the temple.