This commit is contained in:
parent
cd185c0d95
commit
c44ecdc53f
2 changed files with 25 additions and 0 deletions
24
contrib/librepages.service
Normal file
24
contrib/librepages.service
Normal file
|
@ -0,0 +1,24 @@
|
|||
[Unit]
|
||||
Description=LibrePages: Easiest way to deploy websites
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=librepages
|
||||
ExecStart=/usr/bin/librepages 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
|
|
@ -42,6 +42,7 @@ get_bin(){
|
|||
#docker cp $container_id:/usr/local/bin/pages $TARGET_DIR/
|
||||
#docker rm -v $container_id
|
||||
cp target/release/librepages $TARGET_DIR
|
||||
cp contrib/ $TARGET_DIR
|
||||
}
|
||||
|
||||
copy() {
|
||||
|
|
Loading…
Reference in a new issue