Skip to content

Commit

Permalink
fix and mv service into systemd dir
Browse files Browse the repository at this point in the history
  • Loading branch information
Sian Cao committed May 12, 2014
1 parent 1d409b3 commit 92e69f8
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 9 deletions.
6 changes: 3 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ include_directories(${FT2_INCLUDE_DIRS})


configure_file(${PROJECT_SOURCE_DIR}/config.h.in ${PROJECT_BINARY_DIR}/config.h)
configure_file(${PROJECT_SOURCE_DIR}/prometheus-quit.service.in
${PROJECT_BINARY_DIR}/prometheus-quit.service)
configure_file(${PROJECT_SOURCE_DIR}/systemd/prometheus-quit.service.in
${PROJECT_BINARY_DIR}/systemd/prometheus-quit.service)

set(SRCS atlas.cc driver.cc glutil.cc options.cc scene.cc)

Expand Down Expand Up @@ -74,6 +74,6 @@ install(FILES initrd/prometheus.initrd_hook
install(FILES initrd/prometheus.initrd_install
DESTINATION lib/initcpio/install RENAME prometheus)
# quit service
install(FILES ${PROJECT_BINARY_DIR}/prometheus-quit.service
install(FILES ${PROJECT_BINARY_DIR}/systemd/prometheus-quit.service
DESTINATION /usr/lib/systemd/system
PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ)
5 changes: 0 additions & 5 deletions client.cc
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,6 @@ int main(int argc, char *argv[])
dispatch(argv[1]);
close(id);

ofstream ofs{"/tmp/prometheus.done"};
ofs << "";

// bad way to wait for server to finish
sleep(1);
return 0;
}

2 changes: 1 addition & 1 deletion lightdm-prometheus.service
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[Unit]
Description=Light Display Manager
Conflicts[email protected] prometheus-quit.service
Conflicts[email protected]
After=systemd-user-sessions.service [email protected] prometheus-quit.service

[Service]
Expand Down
File renamed without changes.

0 comments on commit 92e69f8

Please sign in to comment.