Search found 4 matches

by BigSwede
Tue 09 Aug 2016, 13:28
Forum: spc-notify-nma
Topic: Template
Replies: 2
Views: 5286

Re: Template

Here is my example of SystemD startup script for notify nma script. Please adjust path's to match your system. Create file in /etc/systemd/system cd /etc/systemd/system touch spc-notify-nma.service chmod 664 spc-notify-nma.service nano spc-notify-nma.service [Unit] Description=SPC Notify NMA plugin ...
by BigSwede
Tue 09 Aug 2016, 13:10
Forum: spc-notify-nma
Topic: Template
Replies: 2
Views: 5286

Re: Template

The script (node-spc-notify-nma.js) did not work for me. I had to change the last function nmaMessage(subject, text). I got an "TypeError: callback is not a function" until I changed the nma command. It seems like the nma command is expecting an callback at the end which I set to null in t...
by BigSwede
Tue 09 Aug 2016, 10:05
Forum: spc-notify-mail
Topic: Template
Replies: 1
Views: 5775

Re: Template

Here is an example of a SystemD startup script for NodeJS email notify script. Using Raspbian Jessie. I placed a plugin directory under the installation directory. Please adjust path's to match your system. Create file in /etc/systemd/system cd /etc/systemd/system touch spc-notify-email.service chmo...
by BigSwede
Tue 09 Aug 2016, 09:57
Forum: Raspberry Pi
Topic: Systemd start-script för Jessie
Replies: 0
Views: 12719

Systemd start-script för Jessie

Dom flesta Linux-distributioner inkl Raspbian Jessie börjar implementera ett nytt sätt att starta tjänster på. Man håller på att fasa ut det gamla SystemV init mot SystemD istället. Jag tänker inte ta ställning för eller emot utan här kommer mitt förslag på startscript för att starta SPC Web Gateway...