Score:0

systemctl restart reverting application file changes

us flag

I wrote a job(written in Java), which fetches historical data from a broker. I keep track of and update the date of last fetch date in a file.

The job is maintained as a service systemctl. Sometimes this job dies due to external dependency and the systemctl starts the job again automatically. When it starts again, I read from a file which contains what date it has to restart from. The problem is, when everytime it restarts, the value in the file changes to what it was before the job started. Is this a problem with systemctl? This was not happening earlier, but I deleted in folders in .cache, is it related?

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.