Skip to content

Manage redis-server 6.0 with systemd occur an err: redis-server.service: Failed with result 'core-dump' #7219

@MrYourM

Description

@MrYourM

My systemd file content:

[Unit]
Description=Redis Server
After=network.target

[Service]
Type=notify
User=redis
Group=svc
WorkingDirectory=/data/redis
ExecStart=/opt/redis/current/redis-server /data/redis/redis.conf
ExecStop=/bin/kill -15 $MAINPID || /bin/kill -9 $MAINPID
Restart=always

LimitNOFILE=infinity

CapabilityBoundingSet=CAP_NET_ADMIN
AmbientCapabilities=CAP_NET_ADMIN
NoNewPrivileges=true

[Install]
WantedBy=multi-user.target

I start redis-server 5.0 and 6.0 with command redis-server redis.conf is ok,and manage redis-server 5.0 with above systemd file is also ok,however its fail for 6.0, what happend?

OS: ubuntu 16.0.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions