Comments (5)
from lanraragi.
The above is what I've done on my personal install. (Although I had to upgrade to debian stretch to get docker's restart=always
working properly)
I wouldn't mind including a systemd service file, but I'm an old fuck who's still on sysvinit, so I don't have anything to test it properly on.
PRs welcome!
Mapping the current LRR npm commands to a service lifecycle shouldn't be too hard.
from lanraragi.
That's cool about docker, but I'm hosting LANraragi in a LXC container that has it's own init.
I'll see if I can't find something that seems applicable, and then try it out myself. If it works, I'll submit it myself. But if someone already knows what to write, please feel free to put in a PR.
from lanraragi.
So I've written up a file, and I'm just letting it do its thing until I'm sure that I haven't set anything on fire by using it.
If anyone wants to try it out:
[Unit]
Description=LANraragi web application
After=network.target,redis.service # not sure if just redis.service would work or not
[Service]
Type=simple
WorkingDirectory=your_install_path
ExecStart=/usr/bin/npm start
#Restart=on-failure
[Install]
WantedBy=multi-user.target
I'm sure modifications could be made, but so far this is working.
from lanraragi.
Since there's been no additional problems reported, I'll be folding this example into 0.5.3 as a "in case you want this" thing.
Thanks again!
from lanraragi.
Related Issues (20)
- I don't know why this file can only display one or two pages HOT 4
- [Feature Request] Add 'History' column at the top HOT 1
- Entering full screen mode during scrolling mode will return to the top page HOT 2
- [Feature Request] Split Picture HOT 1
- (WEBUI) Spacebar key unreliable in going to next page
- Archives getting duplicated when making changes to them
- [Feature request] save japanese title from Chaika.moe metadata HOT 1
- [Feature request] Namespace Sort HOT 1
- ComicInfo plugin not correctly reading from ComicInfo.xml generated by RicterZ's nhentai downloader HOT 2
- E-Hentai metadata plugin account for appended resolutions HOT 4
- Unable to repair wsl distribution when using WSL1
- Failed to create thumbnails HOT 3
- debian build HOT 4
- Progressing tracking doesn't work in infinite scrolling mode
- Redis-server doesn't work properly when Windows get locked(Win + L). HOT 1
- Can't get Lanraragi to open.
- Escaping xml problem with the opds feature HOT 1
- Duplicate file handleing error in Nightly HOT 1
- Introduce a plugin that can copy metadata from another archive in the db.
- No tag cloud HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lanraragi.