{"action":"opened","issue":{"url":"https://api.github.com/repos/flux-framework/flux-sched/issues/140","repository_url":"https://api.github.com/repos/flux-framework/flux-sched","labels_url":"https://api.github.com/repos/flux-framework/flux-sched/issues/140/labels{/name}","comments_url":"https://api.github.com/repos/flux-framework/flux-sched/issues/140/comments","events_url":"https://api.github.com/repos/flux-framework/flux-sched/issues/140/events","html_url":"https://github.com/flux-framework/flux-sched/issues/140","id":140763106,"number":140,"title":"sched should provide rc1/rc3 scripts","user":{"login":"garlick","id":169947,"avatar_url":"https://avatars.githubusercontent.com/u/169947?v=3","gravatar_id":"","url":"https://api.github.com/users/garlick","html_url":"https://github.com/garlick","followers_url":"https://api.github.com/users/garlick/followers","following_url":"https://api.github.com/users/garlick/following{/other_user}","gists_url":"https://api.github.com/users/garlick/gists{/gist_id}","starred_url":"https://api.github.com/users/garlick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/garlick/subscriptions","organizations_url":"https://api.github.com/users/garlick/orgs","repos_url":"https://api.github.com/users/garlick/repos","events_url":"https://api.github.com/users/garlick/events{/privacy}","received_events_url":"https://api.github.com/users/garlick/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-14T18:45:05Z","updated_at":"2016-03-14T18:45:05Z","closed_at":null,"body":"With flux-framework/flux-core#597 merged, sched can now provide startup/shutdown scripts that cause it to be loaded by default when Flux is started in the normal ways with `flux-start` or `srun flux-broker`.  Specifically something like this:\r\n\r\n```\r\nfluxrc1dir = $(sysconfdir)/flux/rc1.d\r\nfluxrc3dir = $(sysconfdir)/flux/rc3.d\r\n\r\nfluxrc1_SCRIPTS = sched-start\r\nfluxrc3_SCRIPTS = sched-stop\r\n```\r\nsched-start:\r\n```\r\n#!/bin/bash -e\r\nflux module load -r 0 sched\r\n```\r\nsched-stop:\r\n```\r\n#!/bin/bash -e\r\nflux module remove -r 0 sched\r\n```\r\n\r\n"}}