Skip to content

Commit 27f607f

Browse files
authored
Merge pull request #28 from sbesson/config_hardening
Service file: add multi-user requirements and increase the limits
2 parents 18316b0 + 4eeac13 commit 27f607f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/dist/omero-ms-thumbnail.service

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
[Unit]
22
Description=OMERO thumbnail microservice server
3-
Requires=redis.service
3+
Requires=multi-user.target
4+
After=multi-user.target
45
After=network.service
56

67
[Service]
@@ -11,6 +12,8 @@ ExecStart=/opt/omero/OMERO.ms/omero-ms-thumbnail/current/bin/omero-ms-thumbnail
1112
User=omero
1213
Group=omero
1314
Restart=no
15+
LimitNPROC=16384
16+
LimitNOFILE=16384
1417

1518
[Install]
1619
WantedBy=multi-user.target

0 commit comments

Comments
 (0)