feat: publish systemd service file
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Aravinth Manivannan 2022-12-30 03:45:39 +05:30
parent a35bf96aea
commit 4afb24a581
Signed by: realaravinth
GPG key ID: AD9F0F08E855ED88
2 changed files with 27 additions and 0 deletions

View file

@ -0,0 +1,24 @@
[Unit]
Description=LibrePages Forms: Easiest way to deploy websites. From component
[Service]
Type=simple
User=librepages
ExecStart=/usr/bin/forms serve
Restart=on-failure
RestartSec=1
SuccessExitStatus=3 4
RestartForceExitStatus=3 4
SystemCallArchitectures=native
MemoryDenyWriteExecute=true
NoNewPrivileges=true
Environment="RUST_LOG=info"
[Unit]
Wants=network-online.target
Wants=network-online.target
Requires=postgresql.service
After=syslog.target
[Install]
WantedBy=multi-user.target

View file

@ -48,6 +48,9 @@ copy() {
echo "[*] Copying dist assets"
cp README.md $TARGET_DIR
cp LICENSE.md $TARGET_DIR
cp -r config/ $TARGET_DIR
cp -r contrib/ $TARGET_DIR
mv $TARGET_DIR/config/default.toml $TARGET_DIR/config/config.toml
# mkdir $TARGET_DIR/docs
# cp docs/CONFIGURATION.md $TARGET_DIR/docs