diff options
author | Dylan Ferris | 2022-07-21 20:21:30 -0400 |
---|---|---|
committer | Dylan Ferris | 2022-07-21 20:21:30 -0400 |
commit | e1e77cacf4be62e9ba3f82e239db3736c61f1b85 (patch) | |
tree | 9df27afa901b725afd5cdde8bb56b06e36e6385c /service.patch | |
parent | 7abbdc7a9de2cc439d10ead6be482b68cc21ad0c (diff) | |
download | aur-dogecoin-daemon.tar.gz |
Patch systemd service for Arch
Diffstat (limited to 'service.patch')
-rw-r--r-- | service.patch | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/service.patch b/service.patch new file mode 100644 index 000000000000..96660e109208 --- /dev/null +++ b/service.patch @@ -0,0 +1,37 @@ +--- src/dogecoin-1.14.6/contrib/init/dogecoind.service 2022-07-18 18:54:00.000000000 -0400 ++++ /usr/lib/systemd/system/dogecoind.service 2022-07-21 20:17:10.344295631 -0400 +@@ -9,6 +9,8 @@ + [Unit] + Description=Dogecoin's distributed currency daemon + After=network.target ++StartLimitIntervalSec=120 ++StartLimitBurst=5 + + [Service] + Type=simple +@@ -19,15 +21,13 @@ + RestartSec=5 + TimeoutStopSec=60 + TimeoutStartSec=5 +-StartLimitIntervalSec=120 +-StartLimitBurst=5 + + User=dogecoin + Group=dogecoin + + ### Restrict resource consumption + MemoryAccounting=yes +-MemoryLimit=3g ++MemoryLimit=3G + + ### Restrict access to host file system. + # +@@ -37,7 +37,7 @@ + TemporaryFileSystem=/:ro + + # Add core dependencies +-BindReadOnlyPaths=/etc/ /lib/ /lib64/ ++BindReadOnlyPaths=/etc/ /usr/lib/ /lib64/ + + # Add daemon paths + BindReadOnlyPaths=/usr/bin/dogecoind /etc/dogecoin/ |