upd readme
This commit is contained in:
parent
cb6bb8a5b4
commit
70cbf268a2
5
.gitignore
vendored
5
.gitignore
vendored
@ -1,3 +1,4 @@
|
||||
# Cloud9 IDE
|
||||
.c9revisions
|
||||
.settings
|
||||
/.c9revisions
|
||||
/.settings
|
||||
/.idea
|
20
README.md
20
README.md
@ -19,6 +19,19 @@ If your base system (outside chroot):
|
||||
Requare for chroot system (inside chroot):
|
||||
* installed systemd
|
||||
|
||||
Installation
|
||||
---
|
||||
|
||||
### Packages:
|
||||
ArchLinux - https://aur.archlinux.org/packages/servicectl/
|
||||
### Manual:
|
||||
```bash
|
||||
wget https://github.com/smaknsk/servicectl/archive/1.0.tar.gz
|
||||
tar -xf 1.0.tar.gz -C /usr/lib/
|
||||
ln -s /usr/lib/servicectl-1.0/servicectl /usr/bin/servicectl
|
||||
ln -s /usr/lib/servicectl-1.0/serviced /usr/bin/serviced
|
||||
```
|
||||
|
||||
Usage
|
||||
---
|
||||
### servicectl
|
||||
@ -41,15 +54,16 @@ This command exec ${action} for all enable services.
|
||||
Params:
|
||||
* action - by default start, can be {start, stop, restart, reload, disable}
|
||||
|
||||
Example:
|
||||
Example
|
||||
---
|
||||
I'm using chrome os as the base system and archlinux in chroot environment.
|
||||
```bash
|
||||
# inside chroot
|
||||
sudo servicectl enable nginx php-fpm
|
||||
|
||||
# outside chroot:
|
||||
# init chroot and run daemons
|
||||
sudo chroot /path/to/root serviced
|
||||
# init chroot and run all enabled daemons
|
||||
sudo chroot /path/to/chroot serviced
|
||||
```
|
||||
|
||||
If you know how to do it better, let me know =)
|
||||
|
20
README_ru.md
20
README_ru.md
@ -19,6 +19,19 @@ Running in chroot, ignoring request.
|
||||
Требования для chroot системы (внутри chroot):
|
||||
* установленный systemd
|
||||
|
||||
Установка
|
||||
---
|
||||
|
||||
### Packages:
|
||||
ArchLinux - https://aur.archlinux.org/packages/servicectl/
|
||||
### Manual:
|
||||
```bash
|
||||
wget https://github.com/smaknsk/servicectl/archive/1.0.tar.gz
|
||||
tar -xf 1.0.tar.gz -C /usr/lib/
|
||||
ln -s /usr/lib/servicectl-1.0/servicectl /usr/bin/servicectl
|
||||
ln -s /usr/lib/servicectl-1.0/serviced /usr/bin/serviced
|
||||
```
|
||||
|
||||
Использование
|
||||
---
|
||||
### servicectl
|
||||
@ -41,15 +54,16 @@ sudo serviced action
|
||||
Параметры:
|
||||
* action - по умолчанию start, может быть {start, stop, restart, reload, disable}
|
||||
|
||||
Пример:
|
||||
Пример
|
||||
---
|
||||
Я использую chrome os как базовую систему и archlinux в chroot окружении.
|
||||
```bash
|
||||
# inside chroot
|
||||
sudo servicectl enable nginx php-fpm
|
||||
|
||||
# outside chroot:
|
||||
# init chroot and run daemons
|
||||
sudo chroot /path/to/root serviced
|
||||
# init chroot and run all enabled daemons
|
||||
sudo chroot /path/to/chroot serviced
|
||||
```
|
||||
|
||||
Если вы знаете как сделать это лучше, дайте знать =)
|
||||
|
Loading…
Reference in New Issue
Block a user