F: Brauche ich ein Konto?
Kein Konto nötig. Generier so viele, wie du willst.
Das ist eine Beispiel-systemd-Service-Datei. Nutz sie als Referenz.
Bereit zum Deployen. Kopiere nach /etc/systemd/system/ und leg los.
webapp.service
Web Application Service
/opt/webapp/start.sh
webapp
[Unit] Description=Web Application Service After=network.target [Service] Type=simple ExecStart=/opt/webapp/start.sh User=webapp Group=webapp WorkingDirectory=/opt/webapp Restart=always Environment=NODE_ENV=production Environment=PORT=3000 [Install] WantedBy=multi-user.target
sudo nano /etc/systemd/system/webapp.service
Einfügen und speichern.
sudo systemctl daemon-reload
Lädt die neue Unit-Datei.
sudo systemctl enable webapp
sudo systemctl start webapp
Startet jetzt und bei jedem Bootvorgang.
sudo systemctl status webapp
Prüf, ob es läuft.
F: Brauche ich ein Konto?
Kein Konto nötig. Generier so viele, wie du willst.
F: Speichert ihr meine Dateien?
Nein. Nichts wird gespeichert. Alles passiert in deinem Browser.
F: Wohin kommt die Datei?
Kopiere nach /etc/systemd/system/, dann führe sudo systemctl daemon-reload.
F: Servicetypen?
Simple: Vordergrund. Forking: Daemon. Oneshot: Einmal-Skript. Notify: signalisiert Bereitschaft.
F: Wie starte ich den Service?
Führe systemctl enable your-service für den Start beim Booten aus, dann systemctl start your-service.
F: Kann ich es bearbeiten?
Ja. Pass sie an deine Bedürfnisse an.