tel-op Опубликовано: 27 серпня, 2018 Опубликовано: 27 серпня, 2018 can i make autorestart stargazer ? any config file no restart server just restart stargazer ...
madf Опубліковано: 28 серпня, 2018 Опубліковано: 28 серпня, 2018 You can use cron, but what's the purpose? 1
tel-op Опубліковано: 30 серпня, 2018 Автор Опубліковано: 30 серпня, 2018 On 8/28/2018 at 9:36 AM, madf said: You can use cron, but what's the purpose? can you help me ? with cron code ...
tel-op Опубліковано: 30 серпня, 2018 Автор Опубліковано: 30 серпня, 2018 i use mikrotik api and my router is dead and i need add again users info in new router and i can do this without server restart and i dont need restart ... I'm using mikrotik app and I want the server to send users data in mikrotik in every 10 minutes, how can I do that?
madf Опубліковано: 30 серпня, 2018 Опубліковано: 30 серпня, 2018 Use the following command: crontab -e It opens an editor with a cron-file for your user. If you need to do cron-jobs under root – execute the command as a root user. Add the following line to the file: */10 * * * * /usr/local/bin/my_cron_command.sh Save and close the file. It will execute /usr/local/bin/my_cron_command.sh every 10 minutes. Now you can create /usr/local/bin/my_cron_command.sh, put whatever you want into it (stargazer restart or mikrotik API interaction) and add an executable bit for this file: chmod +x /usr/local/bin/my_cron_command.sh Make sure the file is correct by manually executing it.
nightfly Опубліковано: 30 серпня, 2018 Опубліковано: 30 серпня, 2018 He can use "shutdown -r now" command in his crontab with same success.
madf Опубліковано: 30 серпня, 2018 Опубліковано: 30 серпня, 2018 Blasting a nuke would be less spectacular
Рекомендованные сообщения
Создайте аккаунт или войдите в него для комментирования
Вы должны быть пользователем, чтобы оставить комментарий
Создать аккаунт
Зарегистрируйтесь для получения аккаунта. Это просто!
Зарегистрировать аккаунтВхід
Уже зарегистрированы? Войдите здесь.
Войти сейчас