Skip to content

Instantly share code, notes, and snippets.


alan blount zeroasterisk

View GitHub Profile
zeroasterisk /
Created Feb 5, 2016 — forked from naholyr/
Sample /etc/init.d script

Sample service script for debianoids

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)
View client.js
'server_sessions','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