Disassembler
182c9eb10b
- Make init.d scripts executable - Change shebang from bash to sh - Alpinize zz-cleanup.sh
17 lines
289 B
Plaintext
Executable File
17 lines
289 B
Plaintext
Executable File
#!/sbin/openrc-run
|
|
|
|
description="Redis docker container"
|
|
|
|
depend() {
|
|
need docker net
|
|
use dns logger netmount
|
|
}
|
|
|
|
start() {
|
|
/usr/bin/docker run -d --rm --name redis -v /srv/redis/redis.conf:/etc/redis.conf -v /srv/redis/data:/var/lib/redis redis
|
|
}
|
|
|
|
stop() {
|
|
/usr/bin/docker stop redis
|
|
}
|