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