{"action":"opened","issue":{"url":"https://api.github.com/repos/tarantool/tarantool/issues/1394","repository_url":"https://api.github.com/repos/tarantool/tarantool","labels_url":"https://api.github.com/repos/tarantool/tarantool/issues/1394/labels{/name}","comments_url":"https://api.github.com/repos/tarantool/tarantool/issues/1394/comments","events_url":"https://api.github.com/repos/tarantool/tarantool/issues/1394/events","html_url":"https://github.com/tarantool/tarantool/issues/1394","id":142393670,"number":1394,"title":"tarantoolctl eval stops execution after box.cfg{}","user":{"login":"evgeny-sureev","id":7701455,"avatar_url":"https://avatars.githubusercontent.com/u/7701455?v=3","gravatar_id":"","url":"https://api.github.com/users/evgeny-sureev","html_url":"https://github.com/evgeny-sureev","followers_url":"https://api.github.com/users/evgeny-sureev/followers","following_url":"https://api.github.com/users/evgeny-sureev/following{/other_user}","gists_url":"https://api.github.com/users/evgeny-sureev/gists{/gist_id}","starred_url":"https://api.github.com/users/evgeny-sureev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evgeny-sureev/subscriptions","organizations_url":"https://api.github.com/users/evgeny-sureev/orgs","repos_url":"https://api.github.com/users/evgeny-sureev/repos","events_url":"https://api.github.com/users/evgeny-sureev/events{/privacy}","received_events_url":"https://api.github.com/users/evgeny-sureev/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-21T16:00:27Z","updated_at":"2016-03-21T16:00:27Z","closed_at":null,"body":"I am trying to implement [6.7. Updating Tarantool in production](http://tarantool.org/doc/book/administration.html#updating-tarantool-in-production) from manual.\r\n\r\nI have working configuration script in `/etc/tarantool/instances.available/` that successfully starts instance on `tarantoolctl restart`. It contents are similar to this:\r\n\r\n```\r\nlog = require('log')\r\n\r\nlog.info('before box.cfg')\r\n\r\nbox.cfg {\r\n    --------------------\r\n    -- Basic parameters\r\n    --------------------\r\n\r\n    -- UNIX user name to switch to after start\r\n    -- by default: tarantool\r\n    username = nil;\r\n\r\n    -- A directory where database working files will be stored\r\n    -- If not specified, defaults to the current directory\r\n    work_dir = \"/tarantool/app\";\r\n\r\n    -- A directory where write-ahead log (.xlog) files are stored\r\n    -- If not specified, defaults to work_dir\r\n    wal_dir = \"/tarantool/app\";\r\n\r\n    -- A directory where snapshot (.snap) files will be stored\r\n    -- If not specified, defaults to work_dir\r\n    snap_dir = \"/tarantool/app\";\r\n\r\n    -- A directory where sophia files will be stored\r\n    -- If not specified, defaults to work_dir\r\n    sophia_dir = \"/tarantool/app/sofia\";\r\n\r\n    -- The read/write data port number or URI\r\n    -- Has no default value, so must be specified if\r\n    -- connections will occur from remote clients\r\n    -- that do not use “admin address”\r\n    listen = 3301;\r\n\r\n    -- Store the process id in this file.\r\n    -- Can be relative to work_dir.\r\n    -- Default value is nil.\r\n    pid_file = \"/var/run/app.pid\";\r\n\r\n    -- Inject the given string into server process title\r\n    -- custom_proc_title = 'example';\r\n\r\n    -- Run the server as a background task\r\n    -- The logger and pid_file parameters\r\n    -- must be non-null for this to work\r\n    background = true;\r\n\r\n-- ... and other configuration parameters ...\r\n}\r\n\r\nlog.info('after box.cfg')\r\n\r\n-- app reloading logic: stop, clear cache, load and start new app...\r\n```\r\n\r\nWhen run with `tarantoolctl eval app /etc/tarantool/instances.available/app.lua`, following lines are written to the log file:\r\n\r\n```\r\n2016-03-21 18:15:52.769 [14236] main/147/console/unix/: I> client unix/: connected\r\n2016-03-21 18:15:52.770 [14236] main/147/console/unix/: I> before box.cfg\r\n2016-03-21 18:15:52.771 [14236] main/147/console/unix/: I> client unix/: disconnected\r\n```\r\n\r\nand app reloading logic not called at all.\r\n\r\nBy tweaking `box.cfg{}`, I figured that it is `pid_file` setting that break execution. If it commented out, the configuration script executes without problems.\r\n\r\nWhat is wrong with configuration?\r\n\r\nTarantool version is Tarantool 1.6.7-630-geab01da."}}