The Rambam · Sefer Zemanim
הלכות שביתת יום טוב ד׳Rest on a Holiday 4
Chapter 4 of 8 in Rest on a Holiday — 26 halachot
Halacha 1א׳
אֵין מוֹצִיאִין אֶת הָאֵשׁ לֹא מִן הָעֵצִים וְלֹא מִן הָאֲבָנִים וְלֹא מִן הַמַּתָּכוֹת. כְּגוֹן שֶׁחוֹכְכִין אוֹתָן זוֹ בָּזוֹ אוֹ מַכִּין זוֹ בָּזוֹ עַד שֶׁתֵּצֵא הָאֵשׁ. וְכֵן הַנֵּפְט הַחַד בְּיוֹתֵר שֶׁהוּא בְּמַיִם שֶׁמְּנִידִין אוֹתָם עַד שֶׁיִּדָּלֵק. אוֹ כְּלִי זַךְ קָשֶׁה אוֹ זְכוּכִית מְלֵאָה מַיִם שֶׁמַּנִּיחִין אוֹתָהּ כְּנֶגֶד עֵין הַשֶּׁמֶשׁ עַד שֶׁיַּחֲזֹר נָגְהָהּ לַפִּשְׁתָּן וְכַיּוֹצֵא בּוֹ וְיִדְלַק. כָּל זֶה וְכַיּוֹצֵא בּוֹ אָסוּר בְּיוֹם טוֹב. שֶׁלֹּא הֻתַּר בְּיוֹם טוֹב אֶלָּא לְהַבְעִיר מֵאֵשׁ מְצוּיָה. אֲבָל לְהַמְצִיא אֵשׁ אָסוּר שֶׁהֲרֵי אֶפְשָׁר לְהַמְצִיא אוֹתָהּ מִבָּעֶרֶב:
One may not start a fire on a holyday by rubbing sticks or stones or metal together, or by striking one against the other until fire is produced. And likewise very sharp petroleum in the water which one agitates until it kindles. Or a hard clear vessel or a glass one full of water which we leave across from the face of the sun until its light reflects on flax or that which is similar to it and it kindles. All of this and that which is similar to it is forbidden on a holiday. On a holyday, one is permitted to start a fire only by means of an already existing fire; but not to start a new fire, since it is possible to start it on the day preceding the festival.
Halacha 2ב׳
אַף עַל פִּי שֶׁהֻתְּרָה הַבְעָרָה בְּיוֹם טוֹב שֶׁלֹּא לְצֹרֶךְ אָסוּר לְכַבּוֹת אֶת הָאֵשׁ אֲפִלּוּ הֻבְעֲרָה לְצֹרֶךְ אֲכִילָה. שֶׁהַכִּבּוּי מְלָאכָה שֶׁאֵין בּוֹ צֹרֶךְ אֲכִילָה כְּלָל. וּכְשֵׁם שֶׁאֵין מְכַבִּים אֶת הָאֵשׁ כָּךְ אֵין מְכַבִּים אֶת הַנֵּר וְאִם כִּבָּה לוֹקֶה כְּמִי שֶׁאָרַג אוֹ בָּנָה:
Although it is permissible on a holyday to light a fire for the purpose of food, it is forbidden to quench a fire that was lit for the purpose of food, because quenching a fire is work entirely unnecessary for the preparation of food. And in the same way that we may not extinguish fire, likewise may we not extinguish a lamp. And if one did extinguish, he is lashed like one who wove or built.
Halacha 3ג׳
אֵין מְסַלְּקִין אֶת פִּי הַנֵּר לְמַעְלָה כְּדֵי שֶׁתִּכְבֶּה. וְאֵין מְסִירִין אֶת הַשֶּׁמֶן מִמֶּנּוּ וְאֵינוֹ חוֹתֵךְ אֶת רֹאשׁ הַפְּתִילָה בִּכְלִי. אֲבָל נוֹפֵץ אֶת רֹאשָׁהּ בְּיָדוֹ. אֲגֻדָּה שֶׁל עֵצִים שֶׁהֻדְלְקָה בִּמְדוּרָה כָּל עֵץ שֶׁלֹּא אָחֲזָה בּוֹ הָאֵשׁ מֻתָּר לְשָׁמְטוֹ וְאֵינוֹ דּוֹמֶה לְמֵסִיר שֶׁמֶן מִן הַנֵּר:
We may not raise the top of the lamp [away from the oil] in order that it be extinguished. Nor may we remove the oil from it or cut the head of the wick with a tool. But one may shake its head with his hand [to remove ash. Regarding] a bundle of wood that was kindled in a bonfire: It is permitted to remove any piece of wood that has not caught on fire—and it is not similar to one who removes oil from a lamp.
Mishneh Torah, Torat Emet 363 edition, via Sefaria — public domain
English: Sefaria Edition, tr. R. Francis Nataf, 2019 — CC BY