Created
April 24, 2020 05:08
-
-
Save 0az/8e35bc2c43f8ab475292edcf88b2eed1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo tee /etc/systemd/system/restart-chromium.service <<EOF | |
[Unit] | |
Description=Restart Chrome | |
[Service] | |
Type=oneshot | |
ExecStart=/bin/sh -c 'pkill -f chromium-browser && /usr/bin/chromium-browser > /dev/null' | |
EOF | |
sudo tee /etc/systemd/system/restart-chromium.timer <<EOF | |
[Unit] | |
Description=Run restart-chrome.service every day at 3 AM | |
[Timer] | |
OnCalendar=*-*-* 3:00:00 | |
EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment