Updated Tutorial: Creating a (micro) service (asciidoc)

This commit is contained in:
Federico Ceratto 2017-01-22 21:44:30 +00:00
parent 43c34025bb
commit e49c5cd0e2
1 changed files with 9 additions and 2 deletions

View File

@ -1,4 +1,4 @@
How to create a simple HTTP service and run it under systemd.
How to create a simple HTTP service for a SOA environment and run it under systemd.
Replace myservicename and myservicedir.
@ -156,7 +156,7 @@ sudo systemctl start myservicename
To enable a watchdog, add "WatchdogSec=10s" to the service file.
Install https://github.com/FedericoCeratto/nim-sdnotify
Install https://github.com/FedericoCeratto/nim-sdnotify[sdnotify client]
[source,nim]
----
@ -167,3 +167,10 @@ sd.notify_ready()
sd.ping_watchdog()
----
=== Application metrics
To generate application metrics for StatsD use https://github.com/FedericoCeratto/nim-statsd-client[StatsD client]