From 90b06cb14be96b038cefc04301dd918298139f7f Mon Sep 17 00:00:00 2001 From: MaysWind Date: Sat, 17 Oct 2020 22:07:29 +0800 Subject: [PATCH] add systemd file --- etc/systemd/labapp.service | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 etc/systemd/labapp.service diff --git a/etc/systemd/labapp.service b/etc/systemd/labapp.service new file mode 100644 index 00000000..399cde9e --- /dev/null +++ b/etc/systemd/labapp.service @@ -0,0 +1,16 @@ +[Unit] +Description=lab (lightweight account book) application +After=syslog.target +After=network.target +After=mariadb.service mysqld.service postgresql.service + +[Service] +Type=simple +User=labapp +Group=labapp +WorkingDirectory=/usr/local/bin/labapp +ExecStart=/usr/local/bin/labapp/lab server run +Restart=on-failure + +[Install] +WantedBy=multi-user.target