mirror of
/repos/baseimage-docker.git
synced 2025-12-30 08:01:31 +01:00
Use setuser instead of chpst in the memcached example for consistency. Closes GH-8
This commit is contained in:
parent
4a6ee64b63
commit
f0fbe3ffc8
@ -129,9 +129,9 @@ Here's an example showing you how to a memached server runit entry can be made.
|
||||
|
||||
### In memcached.sh (make sure this file is chmod +x):
|
||||
#!/bin/sh
|
||||
# `chpst` is part of running. `chpst -u memcache` runs the given command
|
||||
# as the user `memcache`. If you omit this, the command will be run as root.
|
||||
exec chpst -u memcache /usr/bin/memcached >>/var/log/memcached.log 2>&1
|
||||
# `/sbin/setuser memcache` runs the given command as the user `memcache`.
|
||||
# If you omit that part, the command will be run as root.
|
||||
exec /sbin/setuser memcache /usr/bin/memcached >>/var/log/memcached.log 2>&1
|
||||
|
||||
### In Dockerfile:
|
||||
RUN mkdir /etc/service/memcached
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user