Just a nice guy
Just a nice guy

Reputation: 548

Elasticsearch does not start automatically when I restart the server

I am trying to make Elasticsearch start automatically when I restart the server by following the steps here.

The problem is that When I restart the server, /tmp is being mounted with the noexec option and I need to run mount -o remount,exec /tmp and manually start Elasticsarch again.

Someone told me that I need to remove noexec from /etc/fstab but noexec is not there.

Edit:

I think that the noexec option might be added by /scripts/securetmp When I run mount I see:

/usr/tmpDSK on /tmp type ext3 (rw,relatime,data=ordered)
/usr/tmpDSK on /var/tmp type ext3 (rw,nosuid,noexec,relatime,data=ordered)

Upvotes: 0

Views: 714

Answers (1)

Just a nice guy
Just a nice guy

Reputation: 548

Solved by deactivating /scripts/securetmp. For more information, look at this post.

I extracted the steps just in case the post disappears in the future.

Run

# /scripts/securetmp

Is going to appear this:

Would you like to secure /tmp & /var/tmp at boot time? (y/n)

Type n

Is going to appear this:

securetmp will not be added to system startup at this time.
Would you like to disable securetmp from the system startup? (y/n)

Type y

Is going to appear this:

Would you like to secure /tmp & /var/tmp now? (y/n)

Type n

Is going to appear this:

/tmp & /var/tmp will not be secured at this time.

Upvotes: 1

Related Questions