1
0
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:
Oliver Giles 2015-09-19 14:50:22 +02:00
parent f260b7813c
commit 1484f7a706
3 changed files with 23 additions and 1 deletions

View File

@ -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++)
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
View 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
View 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