Updated Tutorial: Creating a (micro) service (asciidoc)
This commit is contained in:
parent
43c34025bb
commit
e49c5cd0e2
|
@ -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]
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue