on xenial help sign in
Start logrotate in the greeter's session.
commit0635f31a700538a7fbbfe2470de9671060fe9213 authorMichael Terry <michael.terry@canonical.com> dateFri 30 May 2014, 09:29 (12 years ago) parent53527e2e6716d9
2 files changed+15−1
data/CMakeLists.txt+1−1 data/unity8-greeter-logrotate.conf+14
data/CMakeLists.txt+1−1
@@ -15,6 +15,6 @@ install(FILES 51-${GREETER_APP}.conf
1515install(FILES ${GREETER_APP}-wrapper
1616 DESTINATION ${CMAKE_INSTALL_BINDIR}
1717 )
18−install(FILES ${GREETER_APP}-init.conf
18+install(FILES ${GREETER_APP}-init.conf ${GREETER_APP}-logrotate.conf
1919 DESTINATION ${CMAKE_INSTALL_DATADIR}/upstart/sessions
2020 )
data/unity8-greeter-logrotate.confnew file+14
@@ -0,0 +1,14 @@
1+description "Unity 8 Greeter logrotate support"
2+author "Michael Terry <mterry@ubuntu.com>"
3+
4+start on unity8-greeter-started
5+task
6+
7+script
8+ # logrotate normally starts on startup and then sleeps for 60 seconds.
9+ # Otherwise, it skips that sleep. Since we can't emit the startup signal
10+ # for a unity8-greeter session, we have to trigger logrotate manually.
11+ # So we do the sleep ourselves in its stead.
12+ sleep 60
13+ initctl emit :sys:rotate-logs
14+end script