Skip to content

Commit

Permalink
dev-db/mysql-init-scripts: Revbump for bug 587416
Browse files Browse the repository at this point in the history
Package-Manager: portage-2.3.0
  • Loading branch information
Brian Evans committed Jul 20, 2016
1 parent 8d8132f commit b85142c
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 3 deletions.
20 changes: 19 additions & 1 deletion dev-db/mysql-init-scripts/files/mysqld-v2.service
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,28 @@ ExecStartPost=/usr/libexec/mysqld-wait-ready $MAINPID
TimeoutSec=300

# We rely on systemd, not mysqld_safe, to restart mysqld if it dies
Restart=always
# Restart crashed server only, on-failure would also restart, for example, when
# my.cnf contains unknown option
Restart=on-abort
RestartSec=5s

# Place temp files in a secure directory, not /tmp
PrivateTmp=true

# To allow memlock to be used as non-root user if set in configuration
CapabilityBoundingSet=CAP_IPC_LOCK

# Prevent writes to /usr, /boot, and /etc
ProtectSystem=full

NoNewPrivileges=true

PrivateDevices=true

# Prevent accessing /home, /root and /run/user
ProtectHome=true

UMask=007

[Install]
WantedBy=multi-user.target
21 changes: 19 additions & 2 deletions dev-db/mysql-init-scripts/files/mysqld_at-v2.service
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,28 @@ ExecStartPost=/usr/libexec/mysqld-wait-ready $MAINPID
# Give a reasonable amount of time for the server to start up/shut down
TimeoutSec=300

# We rely on systemd, not mysqld_safe, to restart mysqld if it dies
Restart=always
# Restart crashed server only, on-failure would also restart, for example, when
# my.cnf contains unknown option
Restart=on-abort
RestartSec=5s

# Place temp files in a secure directory, not /tmp
PrivateTmp=true

# To allow memlock to be used as non-root user if set in configuration
CapabilityBoundingSet=CAP_IPC_LOCK

# Prevent writes to /usr, /boot, and /etc
ProtectSystem=full

NoNewPrivileges=true

PrivateDevices=true

# Prevent accessing /home, /root and /run/user
ProtectHome=true

UMask=007

[Install]
WantedBy=multi-user.target

0 comments on commit b85142c

Please sign in to comment.