> 2. 如何存放计划时间?我是用一个文本文件保存的。
我不知道要保存多少数据。数据量少的话,用 Config 类保存,行不行呀?

> 1. 刷新一次daemon,使其选择最早的计划时间。我的做法是用ps aux|grep daemon 获得daemon的pid,然后kill之
尽量不要 kill 进程。 如果我是用户的话,我选的计划时间是将来的某个时间。因此 daemon 周期检查一下 Config 配置
(比如每个小时查一次),不会错过我指定的备份时间的。

2010/7/26 iaml <[email protected]>

>
> 目前已经写了一个计划备份的功能。具体做法是:在用户选择计划备份的时间后,就自动运行这个daemon,然后以后开机都会自动开启(已经在~/.config/autorstart中设置)。如果计划备份中没有内容,则删除在~/.config/autostart中相关的内容,使得下次开机不会开启。但是有几个地方的处理,我一直觉得不顺眼,但是又没有想到好方法,所以想请各位给点意见。
> 1.如果本来运行daemon,但是用户如果新增了计划备份的时间进去,有必要刷新一次daemon,使其选择最早的计划时间。我的做法是用ps
> aux|grep daemon
> 获得daemon的pid,然后kill之,然后再运行一个新的。(daemon设置成每次启动就会从一个地方获取最早的计划时间)
> 2.如何存放计划时间?我是用一个文本文件保存的。感觉很不和谐
> 目前就那么多。谢谢各位了:)
>
> --
> 感谢抽时间阅读我的邮件
> 祝生活愉快
> 林 涛
>
> _______________________________________________
> Mailing list: https://launchpad.net/~ailurus<https://launchpad.net/%7Eailurus>
> Post to     : [email protected]
> Unsubscribe : https://launchpad.net/~ailurus<https://launchpad.net/%7Eailurus>
> More help   : https://help.launchpad.net/ListHelp
>
>
_______________________________________________
Mailing list: https://launchpad.net/~ailurus
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~ailurus
More help   : https://help.launchpad.net/ListHelp

回复