upd readme

This commit is contained in:
Alexander Sobolevskiy 2014-10-01 22:26:59 +07:00
parent cb6bb8a5b4
commit 70cbf268a2
3 changed files with 37 additions and 8 deletions

5
.gitignore vendored
View File

@ -1,3 +1,4 @@
# Cloud9 IDE
.c9revisions
.settings
/.c9revisions
/.settings
/.idea

View File

@ -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 =)

View File

@ -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
```
Если вы знаете как сделать это лучше, дайте знать =)