{"_id":"58fe15ec7b09013700aa764f","user":"54e7ffdc6a7b0e2300d90d4c","parentDoc":null,"version":{"_id":"58fe142d180afa25006c7974","project":"54e7fca9e6e77d1900ed11f0","__v":2,"createdAt":"2017-04-24T15:05:17.571Z","releaseDate":"2017-04-24T15:05:17.571Z","categories":["58fe142d180afa25006c7975","58fe142d180afa25006c7976","58fe142d180afa25006c7977","58fe142d180afa25006c7978","591f725ffc05d30f00488267"],"is_deprecated":false,"is_hidden":false,"is_beta":true,"is_stable":true,"codename":"","version_clean":"1.1.0","version":"1.1"},"project":"54e7fca9e6e77d1900ed11f0","__v":1,"category":{"_id":"58fe142d180afa25006c7975","version":"58fe142d180afa25006c7974","project":"54e7fca9e6e77d1900ed11f0","__v":0,"sync":{"url":"","isSync":false},"reference":false,"createdAt":"2015-02-21T03:34:02.028Z","from_sync":false,"order":0,"slug":"documentation","title":"Documentation"},"updates":["5923c03863e4ae1900f332d2"],"next":{"pages":[],"description":""},"createdAt":"2017-04-24T15:12:44.038Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":3,"body":"Updating pufferd is a very simple, 3 command job.\n\nThis page assumes you *already* have pufferd installed and working. If you do not, please follow [this page](doc:upgrading-to-pufferd) instead.\n[block:api-header]\n{\n  \"title\": \"Updating pufferd\"\n}\n[/block]\nTo update pufferd, **first stop all running servers.**\n\nThen, stop pufferd using systemctl.\n\nThen, download the latest version of pufferd to /etc/pufferd, overriding the file that's there.\n\nThen, restart pufferd.\n\nThe following commands will do that for you on Ubuntu 16.04, Debian 8, and CentOS 7. If you are using Ubuntu 14.04, please use `service` instead.\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"systemctl stop pufferd\\ncurl -o /srv/pufferd/pufferd https://dl.pufferpanel.com/pufferd/v1.1/pufferd\\nsystemctl start pufferd\",\n      \"language\": \"shell\",\n      \"name\": \"Ubuntu 16.04, Debian 8, CentOS 7\"\n    },\n    {\n      \"code\": \"service pufferd stop\\ncurl -o /srv/pufferd/pufferd https://dl.pufferpanel.com/pufferd/v1.1/pufferd\\nservice pufferd start\",\n      \"language\": \"shell\",\n      \"name\": \"Ubuntu 14.04\"\n    }\n  ]\n}\n[/block]\n\n[block:api-header]\n{\n  \"title\": \"Updating systemd service file\"\n}\n[/block]\nWith pufferd v1.1.2 we have an updated systemd service file that takes advantage of the new graceful shutdown. Please run the following commands to update the service file.\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"cd /srv/pufferd\\nsudo ./pufferd --installService\",\n      \"language\": \"shell\"\n    }\n  ]\n}\n[/block]\n\n[block:api-header]\n{\n  \"title\": \"Regenerating templates\"\n}\n[/block]\nIn order to take advantage of improvements made to the default templates or gain access to new ones that have been added to pufferd, please run the following commands\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"su pufferd\\ncd /srv/pufferd\\n./pufferd --regenerate\\nexit\",\n      \"language\": \"shell\"\n    }\n  ]\n}\n[/block]","excerpt":"How to update your daemon","slug":"updating-pufferd","type":"basic","title":"Updating pufferd"}

Updating pufferd

How to update your daemon

Updating pufferd is a very simple, 3 command job. This page assumes you *already* have pufferd installed and working. If you do not, please follow [this page](doc:upgrading-to-pufferd) instead. [block:api-header] { "title": "Updating pufferd" } [/block] To update pufferd, **first stop all running servers.** Then, stop pufferd using systemctl. Then, download the latest version of pufferd to /etc/pufferd, overriding the file that's there. Then, restart pufferd. The following commands will do that for you on Ubuntu 16.04, Debian 8, and CentOS 7. If you are using Ubuntu 14.04, please use `service` instead. [block:code] { "codes": [ { "code": "systemctl stop pufferd\ncurl -o /srv/pufferd/pufferd https://dl.pufferpanel.com/pufferd/v1.1/pufferd\nsystemctl start pufferd", "language": "shell", "name": "Ubuntu 16.04, Debian 8, CentOS 7" }, { "code": "service pufferd stop\ncurl -o /srv/pufferd/pufferd https://dl.pufferpanel.com/pufferd/v1.1/pufferd\nservice pufferd start", "language": "shell", "name": "Ubuntu 14.04" } ] } [/block] [block:api-header] { "title": "Updating systemd service file" } [/block] With pufferd v1.1.2 we have an updated systemd service file that takes advantage of the new graceful shutdown. Please run the following commands to update the service file. [block:code] { "codes": [ { "code": "cd /srv/pufferd\nsudo ./pufferd --installService", "language": "shell" } ] } [/block] [block:api-header] { "title": "Regenerating templates" } [/block] In order to take advantage of improvements made to the default templates or gain access to new ones that have been added to pufferd, please run the following commands [block:code] { "codes": [ { "code": "su pufferd\ncd /srv/pufferd\n./pufferd --regenerate\nexit", "language": "shell" } ] } [/block]