Re: [systemd-devel] how to run a script which takes about 30 seconds before shutdown

2016-11-12 Thread Kai Krakow
Am Thu, 10 Nov 2016 13:07:52 +0800 schrieb zerons : > On 11/09/2016 09:43 PM, Andrei Borzenkov wrote: > > On Wed, Nov 9, 2016 at 4:11 PM, zerons > > wrote: > >> Hi everyone. > >> > >> Everyday, I need to do something like `git pull` after

Re: [systemd-devel] how to run a script which takes about 30 seconds before shutdown

2016-11-11 Thread Lennart Poettering
On Fri, 11.11.16 22:31, zerons (sironhide0n...@gmail.com) wrote: > >> Hi everyone. > >> > >> Everyday, I need to do something like `git pull` after system > >> bootup and `git push` before shutdown. I am using Ubuntu 16.04. > >> I have tried to put some script into /etc/rc0.d/, /etc/rc6.d/, > >>

Re: [systemd-devel] how to run a script which takes about 30 seconds before shutdown

2016-11-11 Thread zerons
On 11/11/2016 08:44 PM, Lennart Poettering wrote: > On Wed, 09.11.16 21:11, zerons (sironhide0n...@gmail.com) wrote: > >> Hi everyone. >> >> Everyday, I need to do something like `git pull` after system >> bootup and `git push` before shutdown. I am using Ubuntu 16.04. >> I have tried to put

Re: [systemd-devel] how to run a script which takes about 30 seconds before shutdown

2016-11-11 Thread Lennart Poettering
On Wed, 09.11.16 21:11, zerons (sironhide0n...@gmail.com) wrote: > Hi everyone. > > Everyday, I need to do something like `git pull` after system > bootup and `git push` before shutdown. I am using Ubuntu 16.04. > I have tried to put some script into /etc/rc0.d/, /etc/rc6.d/, > each time the

Re: [systemd-devel] how to run a script which takes about 30 seconds before shutdown

2016-11-09 Thread zerons
On 11/09/2016 09:43 PM, Andrei Borzenkov wrote: > On Wed, Nov 9, 2016 at 4:11 PM, zerons wrote: >> Hi everyone. >> >> Everyday, I need to do something like `git pull` after system >> bootup and `git push` before shutdown. I am using Ubuntu 16.04. >> I have tried to put

Re: [systemd-devel] how to run a script which takes about 30 seconds before shutdown

2016-11-09 Thread Andrei Borzenkov
On Wed, Nov 9, 2016 at 4:11 PM, zerons wrote: > Hi everyone. > > Everyday, I need to do something like `git pull` after system > bootup and `git push` before shutdown. I am using Ubuntu 16.04. > I have tried to put some script into /etc/rc0.d/, /etc/rc6.d/, > each time

[systemd-devel] how to run a script which takes about 30 seconds before shutdown

2016-11-09 Thread zerons
Hi everyone. Everyday, I need to do something like `git pull` after system bootup and `git push` before shutdown. I am using Ubuntu 16.04. I have tried to put some script into /etc/rc0.d/, /etc/rc6.d/, each time the script runs, the network has been stopped, so I turn to systemd. === Here is a