Score:0

Crontab to Restart SQL Server Services ubuntu 18.04

cn flag

please how to add task to crontab

to restart mssql

systemctl restart mssql-server.service
* */1 * * *  systemctl restart mssql-server.service
Score:1
in flag

If you plan on restarting the database server hourly, you can do so like this:

0 * * * * service mssql-server restart

However, if need to do this hourly, I would strongly recommend finding the cause of whatever problem is locking up or interfering with the database. SQL Server should only need to be restarted when there are updates or the server is being rebooted

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.