#node.js #pushd #notifications

Why I like pushd for cross platform push notifications

On a recent mobile (android and iOS) project I implemented push notifications with pushd. On the pushd project page, pushd is introduced as follows: >Pushd is a pluggable unified push server for server-side notification to mobile native apps, web apps etc. With pushd you can send push notifications to any supported mobile platform, web app or HTTP server from a single entry point. Pushd takes care of which device is subscribed to which event and is designed to support an unlimited amount of subscribable events. ...

The correct way to use the puppet agent Extension for Windows VMs in Azure ARM template

The examples I found with google were all not working, including the official azure-quickstart templates from Azure. After few hours of testing (starting new VM takes time) I found the correct template by actually looking at a VM where the puppet extension was installed via the Azure Portal. The part with the “placeholder” is of course strange and not needed: the actual settings need to go there, not the dummy stuff. ...

Synology service_initjob_action.c:27 InitJobStart failed, [0xD900 privilege.cpp:60

Today it happened again, trying to start a package in the console and it just failed to start. Digging deeper and looking in /var/log/messages) i saw this error service_initjob_action.c:27 InitJobStart failed, [0xD900 privilege.cpp:60. The full error log is here: 2017-05-12T10:47:22+02:00 DiskStation [2401242.610681] init: pkgctl-CrashPlan pre-start process (8406) terminated with status 1 2017-05-12T10:47:22+02:00 DiskStation synoscgi_SYNO.Core.Package.Control_1_start[7994]: servicecfg_internal_lib.c:187 Failed to start job [pkgctl-CrashPlan][0xD900 privilege.cpp:60] 2017-05-12T10:47:23+02:00 DiskStation synoscgi_SYNO.Core.Package.Control_1_start[7994]: service_initjob_action.c:27 InitJobStart failed, [0xD900 privilege.cpp:60] 2017-05-12T10:47:23+02:00 DiskStation synoscgi_SYNO. ...

Synology Crashplan update to 482 fails

A DSM update or Synology restart broke the PATH settings again and made cpio unavailable from the $PATH. This executable is required for the Crashplan package: it needs it to unpack an update. Googling found me this post where the solution was to copy cpio from within the Crashplan distribution but cpio is already available in /opt/bin/cpio making the solution even easier by just setting the PATH to include /opt/bin. (as it should so tools like ipkg are available)

#supervisor #linux

Running node.js on Synology with supervisor

Running 1 node.js app in a screen window works fine for developping and testing but for my Ghost blog i need a more stable solution. One that starts automatically when the Synology reboots for example. This article Making Ghost run forever explains your options, however, your Synology does not have the easiest option (supervisor) installed. Also not the /lib/lsb/init-functions that would make your own rc.d script easy to write. ...

Running Docker containers on a Chromebook ? With RKT !

My chromebook (Samsung 550 from 2012) can not run the Docker daemon (see here for technical explanation), which is sad and makes it next to useless in a modern DevOps project. #RKT to the rescue BUT it runs regular Docker images just fine with CoreOS RKT ! Follow these install instructions to install RKT, nothing special required. https://coreos.com/rkt/docs/latest/trying-out-rkt.html #Proof you say ? OK, let´s start a shell with rkt and Redis and netcat to it from a second shell. ...