Added systemd service file
This commit is contained in:
parent
d969c6ffc7
commit
3a004b49d8
2 changed files with 17 additions and 0 deletions
|
|
@ -24,9 +24,15 @@ package() {
|
||||||
cd "$srcdir"
|
cd "$srcdir"
|
||||||
cd tazjin-*
|
cd tazjin-*
|
||||||
|
|
||||||
|
# Install blog itself
|
||||||
install -d "${pkgdir}/usr/bin"
|
install -d "${pkgdir}/usr/bin"
|
||||||
install -m755 dist/build/tazblog/tazblog "${pkgdir}/usr/bin/tazblog"
|
install -m755 dist/build/tazblog/tazblog "${pkgdir}/usr/bin/tazblog"
|
||||||
|
|
||||||
|
# Install resources
|
||||||
install -d "${pkgdir}/usr/share/tazblog"
|
install -d "${pkgdir}/usr/share/tazblog"
|
||||||
cp -r res/ "${pkgdir}/usr/share/tazblog"
|
cp -r res/ "${pkgdir}/usr/share/tazblog"
|
||||||
|
|
||||||
|
# Install service file
|
||||||
|
install -d "${pkgdir}/usr/lib/systemd/system"
|
||||||
|
cp "arch/tazblog@.service" "${pkgdir}/usr/lib/systemd/system/"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
11
arch/tazblog@.service
Normal file
11
arch/tazblog@.service
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
[Unit]
|
||||||
|
Description=tazblog web process
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=simple
|
||||||
|
ExecStart=/usr/bin/tazblog
|
||||||
|
Restart=always
|
||||||
|
User=%i
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
Loading…
Add table
Add a link
Reference in a new issue