Set appropriate nice values for services

This commit is contained in:
Eduard Urbach 2019-09-07 20:22:14 +09:00
parent 506fa96e59
commit 3bfacb7e79
Signed by: akyoto
GPG Key ID: C874F672B1AF20C0
6 changed files with 6 additions and 0 deletions

View File

@ -8,6 +8,7 @@ User=MAKEFILE_USER
ExecStart=MAKEFILE_PWD/notify.moe ExecStart=MAKEFILE_PWD/notify.moe
WorkingDirectory=MAKEFILE_PWD WorkingDirectory=MAKEFILE_PWD
Restart=on-failure Restart=on-failure
Nice=0
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target

View File

@ -8,6 +8,7 @@ User=MAKEFILE_USER
ExecStart=MAKEFILE_GOBIN/nano-backup ExecStart=MAKEFILE_GOBIN/nano-backup
WorkingDirectory=MAKEFILE_PWD WorkingDirectory=MAKEFILE_PWD
Restart=on-failure Restart=on-failure
Nice=15
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target

View File

@ -8,6 +8,7 @@ User=MAKEFILE_USER
ExecStart=MAKEFILE_PWD/bots/discord/discord ExecStart=MAKEFILE_PWD/bots/discord/discord
WorkingDirectory=MAKEFILE_PWD WorkingDirectory=MAKEFILE_PWD
Restart=on-failure Restart=on-failure
Nice=5
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target

View File

@ -8,6 +8,7 @@ User=MAKEFILE_USER
ExecStart=MAKEFILE_GOBIN/imageserver ExecStart=MAKEFILE_GOBIN/imageserver
WorkingDirectory=MAKEFILE_PWD WorkingDirectory=MAKEFILE_PWD
Restart=on-failure Restart=on-failure
Nice=2
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target

View File

@ -8,6 +8,7 @@ User=MAKEFILE_USER
ExecStart=MAKEFILE_GOBIN/japanese ExecStart=MAKEFILE_GOBIN/japanese
WorkingDirectory=MAKEFILE_PWD WorkingDirectory=MAKEFILE_PWD
Restart=on-failure Restart=on-failure
Nice=1
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target

View File

@ -8,6 +8,7 @@ User=MAKEFILE_USER
ExecStart=MAKEFILE_PWD/jobs/jobs ExecStart=MAKEFILE_PWD/jobs/jobs
WorkingDirectory=MAKEFILE_PWD WorkingDirectory=MAKEFILE_PWD
Restart=on-failure Restart=on-failure
Nice=10
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target