mirror of
https://github.com/ohwgiles/laminar.git
synced 2024-10-27 20:34:20 +00:00
add systemd service file and default conf file
This commit is contained in:
parent
f260b7813c
commit
1484f7a706
@ -89,4 +89,6 @@ target_link_libraries(laminard capnp capnp-rpc kj-async kj boost_filesystem boos
|
|||||||
add_executable(laminarc src/client.cpp laminar.capnp.c++)
|
add_executable(laminarc src/client.cpp laminar.capnp.c++)
|
||||||
target_link_libraries(laminarc capnp capnp-rpc kj-async kj)
|
target_link_libraries(laminarc capnp capnp-rpc kj-async kj)
|
||||||
|
|
||||||
|
install(TARGETS laminard laminarc RUNTIME DESTINATION usr/bin)
|
||||||
|
install(FILES laminar.service DESTINATION usr/lib/systemd/system)
|
||||||
|
install(FILES laminar.conf DESTINATION etc)
|
||||||
|
9
laminar.conf
Normal file
9
laminar.conf
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
###
|
||||||
|
### LAMINAR_HOME
|
||||||
|
###
|
||||||
|
### Root location containing laminar configuration, database,
|
||||||
|
### build workspaces and archive.
|
||||||
|
###
|
||||||
|
### Default: /var/lib/laminar
|
||||||
|
###
|
||||||
|
LAMINAR_HOME=/var/lib/laminar
|
11
laminar.service
Normal file
11
laminar.service
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Laminar continuous integration service
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
User=laminar
|
||||||
|
EnvironmentFile=-/etc/laminar.conf
|
||||||
|
ExecStart=/usr/bin/laminard
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
|
|
Loading…
Reference in New Issue
Block a user