Skip to content

Commit

Permalink
Fixed issue with velocity directives
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmsilva committed Mar 26, 2018
1 parent 1c49be8 commit 258e9b9
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions src/site/markdown/howto.md.vm
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# How to use
#set($h1 = '#')
#set($h2 = '##')
#set($h3 = '###')
#set($h4 = '####')

## Under Spring Boot
$h1 How to use

$h2 Under Spring Boot

When using Spring Boot, simply import the `systemd-spring-boot-starter` module as a dependency:

Expand All @@ -18,7 +23,7 @@ Auto-configuration takes place through the class [SystemdAutoConfiguration](apid
and will notify systemd once your application starts up successfully, via a Spring Boot event listener
of type [ApplicationReadyEvent](https://docs.spring.io/spring-boot/docs/current/api/org/springframework/boot/context/event/ApplicationReadyEvent.html).

## Regular Java application
$h2 Regular Java application

As a regular Java application, you can also use jsystemd.

Expand All @@ -37,7 +42,7 @@ First, import the `jsystemd-core` module as a dependency:
Then, create an instance of [Systemd](apidocs/com/github/jpmsilva/jsystemd/Systemd.html) using the provided builder methods,
and once your application completes the startup sequence and is ready to do work, just call [ready](apidocs/com/github/jpmsilva/jsystemd/Systemd.html#ready--).

## Systemd service unit
$h2 Systemd service unit

When using this library, service units should now use `Type=notify` under the `[Service]` unit configuration:

Expand Down

0 comments on commit 258e9b9

Please sign in to comment.