Look at LSB init scripts for more information.
Copy to /etc/init.d
:
# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)
Look at LSB init scripts for more information.
Copy to /etc/init.d
:
# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)
Meteor.subscribe( | |
'server_sessions', | |
amplify.store('session'), // Read from local storage / cookies | |
function() { | |
// The server returns only one record, so findOne will return that record | |
serverSession = new Meteor.Collection('server_sessions').findOne(); | |
// Stores into client session all data contained in server session; | |
// supports reactivity when server changes the serverSession | |
Session.set('serverSession', serverSession); | |
// Stores the server session id into local storage / cookies |