Запуск скрипта в загрузке системы на AIX 7

Установите hgsvn, затем сделайте следующее

hg clone https://bitbucket.org/"channel"/dotfiles/src dotfiles

Где channel - файлы пользователей, которые вы хотите клонировать.

0
16.08.2018, 00:59
2 ответа

Чтобы добавить записи в системный inittab, используйтеmkitab:

sudo mkitab 'myapp1:2:respawn:/path/to/myapp1'
sudo mkitab 'myapp2:2:wait:/path/to/myapp2'
sudo mkitab 'myapp3:2:once:/path/to/myapp3'
sudo mkitab 'myapp4:2:boot:/path/to/myapp4'
sudo mkitab 'myapp5:2:bootwait:/path/to/myapp5'

Там, где различные Actionварианты (наиболее полезны):

respawn

If the process identified in this record does not exist, start the process. If the process currently exists, do nothing and continue scanning the /etc/inittab file.

wait

When the init command enters the run level specified for this record, start the process and wait for it to stop. While the init command is in the same run level, all subsequent reads of the /etc/inittab file ignore this object.

once

When the init command enters the run level specified for this record, start the process, do not wait for it to stop and when it does stop do not restart the process. If the system enters a new run level while the process is running, the process is not restarted.

boot

Read this record only when the system boots and reads the /etc/inittab file. The init command starts the process. Do not wait for the process to stop and when it does stop, do not restart the process. The run level for this process should be the default, or it must match the run level specified by the init command at startup time.

bootwait

Read this record only when the system boots and reads the /etc/inittab file. The init command starts the process. Wait for it to stop, and when it does stop, do not restart the process.

Ссылка:

1
28.01.2020, 02:42

Я считаю, что вы должны указать inittabна сценарий, но вы должны использовать доступные инструменты, а не редактировать вручную.

man mkitab
0
28.01.2020, 02:42

Теги

Похожие вопросы