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
5851b686b4
commit
d40e8642de
2 changed files with 26 additions and 0 deletions
24
contrib/librepages-conductor.service
Normal file
24
contrib/librepages-conductor.service
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
[Unit]
|
||||||
|
Description=LibrePages Conductor: Easiest way to deploy websites. Conductor component
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=simple
|
||||||
|
User=librepages-conductor
|
||||||
|
ExecStart=/usr/bin/conductor 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
|
|
@ -38,6 +38,8 @@ DOCKER_IMG="realaravinth/$NAME:$3"
|
||||||
|
|
||||||
get_bin(){
|
get_bin(){
|
||||||
cp target/release/conductor $TARGET_DIR
|
cp target/release/conductor $TARGET_DIR
|
||||||
|
cp -r config/ $TARGET_DIR
|
||||||
|
cp -r contrib/ $TARGET_DIR
|
||||||
}
|
}
|
||||||
|
|
||||||
copy() {
|
copy() {
|
||||||
|
|
Loading…
Reference in a new issue