Добрый день.
Поставил Tumbleweed и столкнулся с неожиданной ситуацией. Запускается база данных под выделенным пользователем - выделяется общая память, массивы семафоров. Все работает.
Далее, в кроне этим пользователем запускается задание, никак с базой не связанное (для пробы даже пустой скрипт проверил) и при завершении этого задания и его сессии очищаются все массивы семафоров этого пользователя, выделенные для базы.
Соответственно, при подключении к базе - ошибка.
Журнал системы:
Jun 08 11:11:01 s1 systemd[1]: Created slice User Slice of UID 1000.
Jun 08 11:11:01 s1 systemd[1]: Starting User Runtime Directory /run/user/1000...
Jun 08 11:11:01 s1 systemd[1]: Finished User Runtime Directory /run/user/1000.
Jun 08 11:11:01 s1 systemd[1]: Starting User Manager for UID 1000...
Jun 08 11:11:01 s1 systemd[21914]: pam_unix(systemd-user:session): session opened for user dbuser(uid=1000) by (uid=0)
Jun 08 11:11:01 s1 systemd[21914]: Queued start job for default target Main User Target.
Jun 08 11:11:01 s1 systemd[21914]: Created slice User Application Slice.
Jun 08 11:11:01 s1 systemd[21914]: Started Daily Cleanup of User's Temporary Directories.
Jun 08 11:11:01 s1 systemd[21914]: Reached target Paths.
Jun 08 11:11:01 s1 systemd[21914]: Reached target Timers.
Jun 08 11:11:02 s1 systemd[21914]: Starting D-Bus User Message Bus Socket...
Jun 08 11:11:02 s1 systemd[21914]: Starting Create User's Volatile Files and Directories...
Jun 08 11:11:02 s1 systemd[21914]: Finished Create User's Volatile Files and Directories.
Jun 08 11:11:02 s1 systemd[21914]: Listening on D-Bus User Message Bus Socket.
Jun 08 11:11:02 s1 systemd[21914]: Reached target Sockets.
Jun 08 11:11:02 s1 systemd[21914]: Reached target Basic System.
Jun 08 11:11:02 s1 systemd[21914]: Reached target Main User Target.
Jun 08 11:11:02 s1 systemd[21914]: Startup finished in 161ms.
Jun 08 11:11:02 s1 systemd[1]: Started User Manager for UID 1000.
Jun 08 11:11:02 s1 systemd[1]: Started Session c27400 of User dbuser.
Jun 08 11:11:02 s1 cron[21910]: pam_unix(crond:session): session opened for user dbuser(uid=1000) by (uid=0)
Jun 08 11:11:02 s1 CRON[21924]: (dbuser) CMD (/data1/bin/test.sh)
Jun 08 11:11:02 s1 CRON[21910]: (dbuser) CMDEND (/data1/bin/test.sh)
Jun 08 11:11:02 s1 CRON[21910]: pam_unix(crond:session): session closed for user dbuser
Jun 08 11:11:02 s1 systemd[1]: session-c27400.scope: Deactivated successfully.
Jun 08 11:11:12 s1 systemd[1]: Stopping User Manager for UID 1000...
Jun 08 11:11:12 s1 systemd[21914]: Activating special unit Exit the Session...
Jun 08 11:11:12 s1 systemd[21914]: Stopped target Main User Target.
Jun 08 11:11:12 s1 systemd[21914]: Stopped target Basic System.
Jun 08 11:11:12 s1 systemd[21914]: Stopped target Paths.
Jun 08 11:11:12 s1 systemd[21914]: Stopped target Sockets.
Jun 08 11:11:12 s1 systemd[21914]: Stopped target Timers.
Jun 08 11:11:12 s1 systemd[21914]: Stopped Daily Cleanup of User's Temporary Directories.
Jun 08 11:11:12 s1 systemd[21914]: Closed D-Bus User Message Bus Socket.
Jun 08 11:11:12 s1 systemd[21914]: Stopped Create User's Volatile Files and Directories.
Jun 08 11:11:12 s1 systemd[21914]: Removed slice User Application Slice.
Jun 08 11:11:12 s1 systemd[21914]: Reached target Shutdown.
Jun 08 11:11:12 s1 systemd[21914]: Finished Exit the Session.
Jun 08 11:11:12 s1 systemd[21914]: Reached target Exit the Session.
Jun 08 11:11:12 s1 systemd[1]: user@1000.service: Deactivated successfully.
Jun 08 11:11:12 s1 systemd[1]: Stopped User Manager for UID 1000.
Jun 08 11:11:12 s1 systemd[1]: Stopping User Runtime Directory /run/user/1000...
Jun 08 11:11:12 s1 systemd[1]: run-user-1000.mount: Deactivated successfully.
Jun 08 11:11:12 s1 systemd[1]: user-runtime-dir@1000.service: Deactivated successfully.
Jun 08 11:11:12 s1 systemd[1]: Stopped User Runtime Directory /run/user/1000.
Jun 08 11:11:12 s1 systemd[1]: Removed slice User Slice of UID 1000.
Это баг или фича?