From 030e2af33db53c6ed72952c3541bfde8883c39ae Mon Sep 17 00:00:00 2001 From: konrad Date: Tue, 16 Jan 2018 18:12:33 +0100 Subject: [PATCH] Added systemd template --- systemd/library.service | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 systemd/library.service diff --git a/systemd/library.service b/systemd/library.service new file mode 100644 index 0000000..84a7d27 --- /dev/null +++ b/systemd/library.service @@ -0,0 +1,23 @@ +[Unit] +Description=Library (A service to manage you library) +After=syslog.target +After=network.target +#After=mysqld.service + +[Service] +# Modify these two values and uncomment them if you have +# repos with lots of files and get an HTTP error 500 because +# of that +### +#LimitMEMLOCK=infinity +#LimitNOFILE=65535 +RestartSec=2s +Type=simple +User=library +Group=library +WorkingDirectory=/home/library +ExecStart=/home/library/library +Restart=always + +[Install] +WantedBy=multi-user.target \ No newline at end of file