mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 12:32:48 +01:00
7c3c6ef71f
bad1716c6d30fdf4be6d5050a04e1211f920bbd6 init: Modify docs and add release note for 12255 (Carl Dong) b0c7b54d0c2e116d61e686b1adfdea6a1f7f02fe init: Use systemd automatic directory creation (Carl Dong) Pull request description: - `-datadir` option specified. - Ask systemd to create and set the right mode for PID directory, configuration directory, and data directory. - Tell systemd our group so it will set the right owner for aforementioned directories. More information: https://www.freedesktop.org/software/systemd/man/systemd.exec.html Tree-SHA512: a6fad1efa2be433c1fdd863df3ff232736ed709a9e281f51a003b40987d8c213dc64a52bc13a19c85bf85680e78f0be112ecaf32ac274b1ff93bac84a1208845
69 lines
1.7 KiB
Desktop File
69 lines
1.7 KiB
Desktop File
# It is not recommended to modify this file in-place, because it will
|
|
# be overwritten during package upgrades. If you want to add further
|
|
# options or overwrite existing ones then use
|
|
# $ systemctl edit dashd.service
|
|
# See "man systemd.service" for details.
|
|
|
|
# Note that almost all daemon options could be specified in
|
|
# /etc/dash/dash.conf, except for those explicitly specified as arguments
|
|
# in ExecStart=
|
|
|
|
[Unit]
|
|
Description=Dash daemon
|
|
After=network.target
|
|
|
|
[Service]
|
|
ExecStart=/usr/bin/dashd -daemon \
|
|
-pid=/run/dashd/dashd.pid \
|
|
-conf=/etc/dash/dash.conf \
|
|
-datadir=/var/lib/dashd
|
|
|
|
# Process management
|
|
####################
|
|
|
|
Type=forking
|
|
PIDFile=/run/dashd/dashd.pid
|
|
Restart=on-failure
|
|
|
|
# Directory creation and permissions
|
|
####################################
|
|
|
|
# Run as dash:dash
|
|
User=dashcore
|
|
Group=dashcore
|
|
|
|
# /run/dashd
|
|
RuntimeDirectory=dashd
|
|
RuntimeDirectoryMode=0710
|
|
|
|
# /etc/dash
|
|
ConfigurationDirectory=dash
|
|
ConfigurationDirectoryMode=0710
|
|
|
|
# /var/lib/dashd
|
|
StateDirectory=dashd
|
|
StateDirectoryMode=0710
|
|
|
|
# Hardening measures
|
|
####################
|
|
|
|
# Provide a private /tmp and /var/tmp.
|
|
PrivateTmp=true
|
|
|
|
# Mount /usr, /boot/ and /etc read-only for the process.
|
|
ProtectSystem=full
|
|
|
|
# Disallow the process and all of its children to gain
|
|
# new privileges through execve().
|
|
NoNewPrivileges=true
|
|
|
|
# Use a new /dev namespace only populated with API pseudo devices
|
|
# such as /dev/null, /dev/zero and /dev/random.
|
|
PrivateDevices=true
|
|
|
|
# Deny the creation of writable and executable memory mappings.
|
|
MemoryDenyWriteExecute=true
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|