crontab like snaps or interfaces

Bug #1642090 reported by Zhang Enwei
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
snapd
Fix Released
Undecided
Unassigned

Bug Description

I didn't find any snaps or interfaces that could support crontab or systemd.timer or that kind of timed operations.
The user story is: Suppose my snap uses syslog to save all the logs, how should logrotate work?
My simple understanding is that, my snap can set up some configurations that could be used by other snap for example let me name it as logrotate snap.

Thanks a lot.

Revision history for this message
Zygmunt Krynicki (zyga) wrote :

Hello

Snapd now supports systemd timer units. While you won't be able to just rotate the logs stored in /var/log, you may be able to use this facility to rotate your own logs stored in $SNAP_DATA. The relevant documentation is here: https://snapcraft.io/docs/services-and-daemons (look for "timer"). If you have any questions about using that feature please ask on the snapcraft forum page associated with the documentation https://forum.snapcraft.io/t/services-and-daemons/12601

affects: snappy → snapd
Changed in snapd:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.