feat: publish systemd service file
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
a35bf96aea
commit
4afb24a581
2 changed files with 27 additions and 0 deletions
24
contrib/librepages-forms.service
Normal file
24
contrib/librepages-forms.service
Normal 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
|
|
@ -48,6 +48,9 @@ copy() {
|
||||||
echo "[*] Copying dist assets"
|
echo "[*] Copying dist assets"
|
||||||
cp README.md $TARGET_DIR
|
cp README.md $TARGET_DIR
|
||||||
cp LICENSE.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
|
# mkdir $TARGET_DIR/docs
|
||||||
# cp docs/CONFIGURATION.md $TARGET_DIR/docs
|
# cp docs/CONFIGURATION.md $TARGET_DIR/docs
|
||||||
|
|
Loading…
Add table
Reference in a new issue