diff options
Diffstat (limited to 'h2.service')
-rw-r--r-- | h2.service | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/h2.service b/h2.service new file mode 100644 index 000000000000..a64cb8e14dac --- /dev/null +++ b/h2.service @@ -0,0 +1,11 @@ +[Unit] +Description=H2 Database server + +[Service] +Type=simple +User=h2 +ExecStart=/usr/bin/java -cp /usr/share/java/h2/h2.jar org.h2.tools.Server -baseDir /var/lib/h2 -tcp -web -ifNotExists -tcpPassword h2 +ExecStop=/usr/bin/java -cp /usr/share/java/h2/h2.jar org.h2.tools.Server -tcpShutdown tcp://localhost -tcpPassword h2 + +[Install] +WantedBy=multi-user.target |